14,931 questions
1
vote
1
answer
166
views
Selenium: WhatsApp Web file upload works in normal Chrome but fails in headless mode
I’m using Selenium with C# ChromeDriver to automate WhatsApp Web.
Uploading a PDF works correctly in normal (visible) Chrome:
var attachInput = driver.FindElement(By.CssSelector("input[type='file'...
2
votes
2
answers
374
views
Selenium opens page in the Chrome footer
I am working on a project where I am using WPF and C# with Selenium. It automates some steps on one web page. I am using a specific user-profile to do it. It's a company owned laptop.
When Selenium ...
2
votes
3
answers
224
views
Selenium ChromeDriver not working in JavaFX application packaged as an exe
I have a JavaFX application that uses Selenium to scrape some websites. Everything works great when I run the application through IntelliJ. However, I am packaging the final product into an exe file ...
1
vote
2
answers
73
views
Selenium can extract button text but can't click it
I am working in Python in a Google Colab notebook and using google_colab_selenium. Trying to push the "Load More" button on this page: https://www.rottentomatoes.com/m/inside_out_2/reviews. ...
4
votes
2
answers
132
views
How to specify the operating system when downloading ChromeDriver using ChromeDriverManager?
Using ChromeDriverManager and the following code block:
if platform.system() == "Windows":
driver_path = ChromeDriverManager(os_system_manager=OperationSystemManager(os_type="win64&...
1
vote
1
answer
204
views
Selenium ChromeDriver randomly crashes with 'session deleted because of page crash' error even in headless mode
I'm running selenium tests on ubuntu with chromedriver 120 and chrome 120 but randomly getting "chrome not reachable" or "session deleted because of page crash" errors. happens ...
0
votes
2
answers
97
views
Selenium WebDriver: Can't access/find element on website past a "#document" entry
Using Selenium 4.0 and Google Chrome 142 in a C# application, I have issues accessing resp. "finding" an element on my website. The HTML presented in the Chrome dev console is as follows (...
0
votes
2
answers
143
views
Selenium/Python - cannot find an element
Python 3.11
Selenium 4.38
For the following URL:
https://www.amazon.es/-/en/Womens-Lace-up-Comfortable-Anti-Slip-SDMB2203W/dp/B0B5CX9VZY
On the right hand side of the page it says "Dispatches ...
2
votes
2
answers
184
views
How do I code a CSS Selector to find a specific button, click on it, and wait until the webpage has completed the clicked task?
I have a working web scraper written in Python, Selenium and Chromedriver (all up-to-date version wise) and various other software packages. The target webpage has a field for the phone number, but ...
2
votes
3
answers
108
views
Can't find HBO Max sign-in, "unable to locate element" error
I'm trying to make a automation that logs into https://auth.hbomax.com/login, however I keep getting the below error as the code can't locate the sign-in element.
selenium.common.exceptions....
-1
votes
2
answers
1k
views
A problem with Selenium WebDriver Manager using Google Colab
I've been parsing some websites using Selenium webdriver (its Chrome variant in particular) about a month ago and all worked fine (using Google Colab). I'm trying to run the same code now and it doesn'...
0
votes
1
answer
94
views
Web Automation w/ Selenium
I'm trying to automate sending a tweet via Selenium (Python) and while I'm able to access the page using my existing chrome profile, I'm not able to access any elements and what's more is that it ...
Best practices
1
vote
3
replies
127
views
Using selenium waits as asserts
I'm trying to use asserts in selenium java. I read that for every validation i need to use an assert as best practice.
i stumbled upon this code example:
WebElement button = wait.until(...
0
votes
0
answers
522
views
Why is my Selenium ChromeDriver crashing with Docker?
I have a service on my application that is scrapping a webpage to obtain some information with Selenium. I have run it without Docker and with Docker in my PC.
I am now working on deploying it with ...
3
votes
2
answers
1k
views
Error message when scraping website via selenium
The Python code:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import Select
import pandas as pd
import time
# define the ...