-2

I've been trying to click in a button and haven't succeeded. I want to access line 130 Começa a new game

line 130 "Começa a new game"

It has two elements with class="responsive-lg" and the one I want is the second.

I need help to overcome that! I've tried:

Glorfindel
3161 gold badge7 silver badges15 bronze badges
asked Apr 11, 2021 at 10:05
2
  • What's the issue you facing and also add the html as code not inage Commented Apr 11, 2021 at 10:59
  • I've already overcome the "such" problem, n also did not know that is forbidden post images Commented Apr 12, 2021 at 15:42

1 Answer 1

0

If you are sure that your search criteria is the text, you can use XPath:

"//*[text()='Começa a new game']"
answered Apr 11, 2021 at 14:30
2
  • Thanks. It Works. Commented Apr 12, 2021 at 15:26
  • I also fount other way: link = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//div[@class='p-5']/div[4]/button[1]"))) Commented Apr 12, 2021 at 15:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.