Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Selenium Code Throws Errors #8

Open
alexkhazzam opened this issue Jul 11, 2022 · 1 comment
Open

Python Selenium Code Throws Errors #8

alexkhazzam opened this issue Jul 11, 2022 · 1 comment

Comments

@alexkhazzam
Copy link
Collaborator

I am working on the following.

This method of selecting HTML elements fails to work.

'//div[@id="rso"]/div/div/div/a/div/div[2]/div[4]/p/span'

Additionally, these HTML selectors need to be updated.

driver.execute_script("""
        const menu = document.getElementById('hdtbMenus');
        menu.classList.remove('p4DDCd');
        menu.classList.add('yyoM4d');
""")
@LSBispo
Copy link

LSBispo commented Aug 23, 2022

Hi, did u tried //*[@id="rso"] ?

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

No branches or pull requests

2 participants