Not able to click on a modal dialog box

+1 vote

I'm not able to click on a modal dialog box. What I'm using is:

    element = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[@id="solver-button"]')))
    element.click()

I don't get an error and after 10 seconds I get the error selenium.common.exceptions.TimeoutException: Message:

The inspect element code for the button:

    <button class="rc-button goog-inline-block" tabindex="0" title="Solve the challenge" id="solver-button"></button>
May 18, 2019 in Python by Ahmet
• 130 points

edited May 20, 2019 by Omkar 3,192 views
1. Re-check the XPath

2. Is the button enabled?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer
0 votes
1 answer

How to evaluate a soft Voting classifier being trained on some data

VotingClassifier does not have a best_score_ attribute. ...READ MORE

answered Sep 6, 2018 in Python by Priyaj
• 58,020 points
1,168 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! here’s a barcode scanner written in six ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,020 points
1,011 views
0 votes
1 answer

List comprehension on a nested list - How to do it in Python?

Not sure what your desired output is, ...READ MORE

answered Nov 21, 2018 in Python by Nymeria
• 3,560 points
1,510 views
0 votes
1 answer

Question on PyQt: How to connect a signal to a slot to start a background operation in Python

It shouldn't matter whether the connection is ...READ MORE

answered Nov 27, 2018 in Python by Nymeria
• 3,560 points
1,722 views
+1 vote
3 answers
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,209 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP