I've been trying to click in a button and haven't succeeded. I want to access 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
-
What's the issue you facing and also add the html as code not inagePDHide– PDHide2021年04月11日 10:59:05 +00:00Commented Apr 11, 2021 at 10:59
-
I've already overcome the "such" problem, n also did not know that is forbidden post imagesKali Chad– Kali Chad2021年04月12日 15:42:20 +00:00Commented Apr 12, 2021 at 15:42
1 Answer 1
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
-
-
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]")))
Kali Chad– Kali Chad2021年04月12日 15:27:06 +00:00Commented Apr 12, 2021 at 15:27
default