Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Unable to locate element. A small change in Google results page. #6

Open
ownchoice opened this issue Jul 13, 2019 · 0 comments
Open

Comments

@ownchoice
Copy link

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@class='kno-ftr']//div/following-sibling::a[text()='Enviar comentarios']"}

Trying to use it to fetch Spanish results gives me this error. But I see the link with the anchor text "Comentarios" instead of "Enviar comentarios", so if I change the line 103 in the file gquestions.py it works fine.
From:
el = browser.find_element_by_xpath("//div[@class='kno-ftr']//div/following-sibling::a[text()='Enviar comentarios']")
To:
el = browser.find_element_by_xpath("//div[@class='kno-ftr']//div/following-sibling::a[text()='Comentarios']")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant