I am trying to know whether a button is enabled or disabled so i can click on it. I have tried this code but it seems of no use:
button = browser.find_elements_by_id("join_button_input")[0].click()
print(button)
if button == None:
k = 1
while (k<=10):
time.sleep(10)
browser.refresh()
button
k+=1
Here is the html text that I am using:
<input id="join_button_input" type="button" value="Join session" class="btn btn-primary" onclick="M.mod_bigbluebuttonbn.rooms.join('http://live.webcentreindia.com/mod/bigbluebuttonbn/bbb_view.php?action=join&id=893&bn=890');" disabled="true">