Relative Content

Tag Archive for pythonselenium-webdriver

How can I get Selenium to read my open page in Python?

I can’t get Selenium to read the page I left open, every time I try on of the commands from the documentation, it doesn’t recognize the .driver.
Every time I use my own configs, it opens a new page.
There’s a question relatively similar, but mine’s in Chrome, not Firefox.

How to get every element of a on a with automatic scroll?

I want to scrap the “people” page of a company on Linkedin. So there is a section that have a list of cards of workers. It is necessary to do automatic scroll to get all the workers. I’m using selenium both for navigation and for scraping. So if there is no connection to the user, it would simply go to the next <li>. If there is a connection, it would click on the link, go to the user’s profile, get all the data, save this data on database and go back to the “people” page and go to the next <li>… but in the print that I used as debugger, it just prints the name and position of the first on the list, the first <li> as if I was doing f”ind_element”, instead of “find_elements”. Also, I guess that there is a chance that the automatic scroll may be wrong, but I don’t know what is wrong.

Python Selenium issue with google chrome version >128.0.6613.138 – Profil Screen always showing

i recently ran into the problem, that all my python scripts which utilize the selenium module are broken apparently due to a google chrome update. It seems like selenium/google chrome always asks to select a user profile no matter what options are given inside the python script e.g. “user-data-dir” has no effect at all. This occurs even in headless mode. The original script was able to download a pdf in the background without the “user-data-dir” option.

Why does not selenium takes the attribute from the selected tag but it does in a separate file?

In this code, im trying to get and save links and then open them, once open, i want to press a button that sends me to another page and i want to press a button that sends me to the page i want, the problem is i have to do this 500 times and more, so i automate it but the problem comes now, if i do the code to press the button, it says i could’nt find it, this is not my fault, the css selected is well written, i dont now if if a selenium thing, this is my whole code