Skip to content
Advertisement

Tag: selenium

chrome not reachable Selenium webDriverException

Option values when creating drivers On the remote server(ubuntu on EC2) via ssh, Attempt to run Python scripts using selenium via nohup python3 ~~. py> ~/log.out & It works well when maintaining the ssh connection with the server. But an error occurs a few seconds after disconnecting the ssh selenium.common.exceptions.WebDriverException: Message: chrome not reachable (Session info: headless chrome=102.0.5005.61) How do

How to scroll down in side menu

I am new to selenium python, how to scroll down to the bottom of the filter in swiggy. When I tried the background page is getting scroll instead of filter. enter image description here Answer First you have to be sure to target the correct element, in this case the side menu, then with javascript you can edit its scroll

Selenium cannot click button because there is a div overlay

I am trying to scrap this webpage https://www.tecnocasa.es/venta/piso/barcelona/barcelona/510567.html, the code i use is the following, and i think is correct: The buttons are found but when i try to click one i have the error <button class=”btn-default”> is not clickable at point (1138,829) because another element <div id=”hide-overlay” class=”hide-overlay fade-leave-active fade-leave-to”> obscures it How can i disable this overlay and

Selenium test getting interrupted by a popup

I am trying to run some practice test on this webpage that prints the current positions of teams in this table: https://www.premierleague.com/tables but each time i run the script, I keep getting interrupted by a popup that I can’t seem to get Selenium to click. I have tried adding a wait before clicking, but it keeps returning the same error

Calendar Data Picker in Selenium

Hi I am trying to figure it out how to pick day from the calendar in Python. I would like to select the date 04/27/2022 under requested loading date. I read some post related to this but I could not figure it out. This is what I did so far but not working. enter image description here Answer You do

How to click through multiple elements with same XPATH in selenium using for loop?

I’m trying to web scrape different elements with same class name. The following statements works well. … and so on. Now, if I put this in a loop, it doesn’t work. Looks like, it doesn’t recognize (//div[@class= ‘jumbo-tracker’])[i] Here’s the code: Here’s the exception: Please, help. Answer range() The range() function creates a sequence of numbers. So while passing the

Advertisement