14,958 questions
1
vote
2
answers
79
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
2
answers
71
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....
0
votes
0
answers
109
views
A problem with Selenium WebDriver manager
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
72
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
86
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
213
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 ...
2
votes
2
answers
324
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 ...
0
votes
1
answer
85
views
Can't find elements when a pdf is opened in tab (chromedriver)
When I open a PDF file via a normal link (e.g., https://unec.edu.az/application/uploads/2014/12/pdf-sample.pdf), Chrome opens the PDF in the same tab with Chrome's integrated PDF viewer component.
In ...
1
vote
1
answer
109
views
Chrome 141 + Xvfb + Selenium: black screenshots after upgrade (worked on Chrome 132)
I’m using Python + Selenium + pyvirtualdisplay (Xvfb) to run Chrome and capture a series of screenshots via ffmpeg.
The series of screenshots is blank while only the last screenshot is proper. As the ...
2
votes
1
answer
43
views
Cannot access 'iwe-autocomplete' element in html with selenium
Website photo with search box visible.
So, this is the website
https://sa.ucla.edu/ro/public/soc
There is a dropdown menu for selecting subject area where I need to write subject and i will receive ...
-1
votes
1
answer
69
views
Selenium script marks all search results as “not found” because details load only after clicking a link [closed]
I’m using Python + Selenium + ChromeDriver to check a list of titles (from a CSV file) against an online library catalog.
My script searches each title and tries to determine if a specific library has ...
0
votes
0
answers
68
views
new verison of chromedriver returns org.openqa.selenium.SessionNotCreatedException: Could not start a new session
I moved the application to a new server and now the following error occurs every time you use selenium
e=org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code ...
0
votes
1
answer
82
views
How do I scrape a person's name from their LinkedIn profile using Selenium's Chrome driver in Python?
I have a Python script that uses Selenium's Chrome driver to log into LinkedIn and visit one profile. That works fine. However, I can't get the script to scrape the person's name from their profile.
I ...
1
vote
1
answer
130
views
Selenium ChromeDriver error: "Unable to discover open pages", "failed to connect to Chrome"
TL;DR: New Selenium sessions fail with "unable to discover open pages", and the ChromeDriver log ends with "Failed to connect to Chrome. Attempting to kill it."
Here's how I'm ...
1
vote
1
answer
150
views
Appium fails to find chromedriver for WebView: Trying to use binary that doesn’t exist
I’m trying to automate an Android WebView app using Appium + WebdriverIO (v9) for my hybrid app.
My test fails when I try to switch to the WebView context:
[0-1] 2025-09-25T13:54:41.590Z WARN ...
0
votes
1
answer
116
views
How to use Selenium on headless Raspberry Pi
I am trying to get Selenium (v. 4.35.0) working on my headless Raspberry Pi.
I installed Chromium and Chromedriver on the Pi. In my usr/bin/ directory I have chromedriver, chromium, and chromium-...
-1
votes
1
answer
76
views
Handling timeout in Selenium Python
My webpage taking close to 5 minutes to complete the process after clicking a button.
I am using the following code to perform the click
from selenium import webdriver
from selenium.webdriver.common....
0
votes
0
answers
120
views
Selenium Chrome browser hangs and becomes unresponsive after processing a few profiles [duplicate]
I’m using Selenium with a custom Chrome setup via undetected_chromedriver, and I run into a critical issue during automated browsing sessions.
After successfully processing around 5–6 LinkedIn ...
0
votes
0
answers
98
views
Chrome --remote-debugging-port not works
On Win 11,I try to run chrome using the --remote-debugging-port with --user-data-dir, and the chrome opens, but when I try to find the port using netsat -an that port doesn't shows up. Currently I am ...
1
vote
1
answer
171
views
Selenium with chromedriver blank (White) screenshots in headless mode (Working on firefox)
Currently running selenium with Chrome version 140.x.
Im trying to take a screenshot of the following page (More specifically the displayed ads) but the content inside the ad is not loading - rather ...
1
vote
2
answers
165
views
Chrome Headless mode resolution issue
I have been working with BDD Test automation since 3 years now that used Neodymium 4.1.5 version with Java 11. recently since 2 months I am facing issue with Chrome Headless mode execution where ...
0
votes
1
answer
75
views
prevent selenium from loading whole page using vba
driver.get "https://www.ambito.com/contenidos/dolar.html"
I want to stop loading after a determined amount of time or once I've got the elements that I need. I tried lots of things, but &...
0
votes
0
answers
65
views
Disable assignment of window.location in Selenium
I'm trying to extract data from a website using Selenium. On random occasions, the page will do a client-side redirect with window.location. How can I disable this?
I've tried redefining the property ...
1
vote
2
answers
146
views
NoSuchWindowException with Python and Selenium
I have the following Python code:
async def signIn():
"""Signs in to test environment based on the credentials provided with the developer tools open and logging started
"&...
1
vote
2
answers
469
views
Loading unpacked Chrome extension with Selenium 4.34.2
I am trying to load an unpacked Chrome extension that is stored (as an unpacked folder) in the same folder where my script is running. This is the extension.
import time
from selenium import webdriver
...
1
vote
0
answers
135
views
azure function with selenium not working gives internal server 500 error
Here my http_trigger test function seems to run smoothly and is able to write files as expected to my azure blob storage, however when I test extract_signals which uses now a full blown headless ...
0
votes
0
answers
54
views
StaleElementReferenceError in Selenium when running in Docker but not Locally
For this apps test, doing a series of cucumber steps with the verification is in selenium. In the steps we hover over an element which causes a tooltip to pop-up. Selenium is then supposed to locate ...
0
votes
1
answer
47
views
Why does MoveToElement + Click not work, while IJavaScriptExecutor + Clik does?
Novice here, using Selenium 4.34 on .NET 8.0.
Automation test page used: https://demoqa.com/
Sudo:
Open Chrome
Go to URL
Click Book Store Application
Whole script:
using OpenQA.Selenium;
using ...
1
vote
1
answer
99
views
When I try to run my cucumber file on Jenkins, Jenkins looks at my local directory instead of GitHub
I am running Jenkins on my local machine from port 8080, the pipeline is connected to my GitHub through the plugin and I have confirmed that Jenkins can see my Jenkinsfile on my repo. There is a step ...
0
votes
1
answer
176
views
can't make undetected-chromedriver work on mac
I get Error: Message: session not created: cannot connect to chrome at 127.0.0.1:55046
when running:
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium....
5
votes
1
answer
8k
views
How to suppress Chrome GCM DEPRECATED_ENDPOINT errors when running Selenium WebDriver? [closed]
I'm running a web scraping project using Selenium with ChromeDriver in headless mode, and I'm constantly seeing the following logs in my terminal:
[20376:708:0708/170807.138:ERROR:google_apis\gcm\...
0
votes
2
answers
78
views
Text box value not getting cleared correctly
I have a text field with "textA", I simply want to clear the text and enter "textB"
I have used
TextField.clear() and
TextField.SendKeys(Keys.Control + "a");
TextField....
0
votes
0
answers
135
views
ChromeDriver 138 crashes/ECONNRESET waiting for URL change
I'm running some Nightwatch tests, on a headless browser, running in Docker, on Bitbucket, using the latest Chrome and Chromedriver (v138).
"devDependencies": {
"@percy/cli&...
0
votes
1
answer
737
views
How do I disable this warning from abseil in selenium python when using chromedriver?
This is the code that I tried to run
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('log-level=3')
driver = webdriver.Chrome(options=options)
driver.get("...
2
votes
0
answers
71
views
Linux Chrome throws "Could not start session. Response code 500" with a valid AutoSelectCertificate JSON policy while running automatic tests [closed]
For development of automatic tests with Java/selenium, that uses a P12 certificate for authentication, I'm having problems running tests in Chrome in a Linux Docker environment.
I'm trying to use the ...
0
votes
1
answer
143
views
org.openqa.selenium.SessionNotCreatedException: Could not start a new session
My selenium setup is:
WebDriverManager.chromedriver().setup();
ChromeOptions ops = new ChromeOptions();
ops.addArguments("--remote-allow-origins=*");
ops.addArguments("--disable-popup-...
0
votes
0
answers
94
views
undetected_chromedriver loads Chrome Profile but code crashes afterwards
I wanted to access logins in my chrome profile but every time i try to access it, the window opens correctly but no further action gets performed like opening the link or anything. The code crashes. I ...
0
votes
0
answers
95
views
How can I get Chrome debug or network logs using RemoteWebDriver in Selenium Grid? Console logs work locally but not from remote nodes
I’m trying to capture browser logs during test execution. When I use local WebDriver, I can access these logs using:
GeckoDriverService service = new GeckoDriverService.Builder()
....
0
votes
0
answers
32
views
Running Kibana Functional Tests in Docker Fails with WebDriver: session not created (user-data-dir conflict)
I am developing my kibana plugin. I coded some tests which I can run in local easily like this:
TMPDIR=$HOME/tmp TEST_BROWSER_HEADLESS=0 yarn test --functional-test --testConfigFile ./test/functional/...
1
vote
0
answers
97
views
How to use Java Selenium ChromeDriver to passed Cloudflare bot checking?
I know this question has been asked many times, but all I found is using Python programming which is I am totally not familiar.
I also follows this article to add Request headers, and this to ...
0
votes
1
answer
262
views
I cannot open browser with robot framework
Here my sample code:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${URL} https://www.google.com
${BROWSER} chrome
*** Test Cases ***
Browse Google
Open Browser ...
1
vote
1
answer
126
views
I'm getting an "element not interactable" error in selenium, how do I fix it?
I'm new to Selenium. I am trying to interact with the search bar of this website: https://www.careerjunction.co.za, in order to have the user of my program search for some job, and then scrape the ...
0
votes
0
answers
38
views
Selenium session cookies are not being fetched properly
import sys
import time
import json
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from google import genai
...
1
vote
0
answers
92
views
Why does 'undetected_chromedriver' stop working when a new version is released?
I have a Dockerfile where both Chrome and Python 3 are installed, and in requirements.txt I have selenium==4.23.1 and undetected_chromedriver==3.5.5. After some time (without having rebuild the image ...
0
votes
2
answers
1k
views
Cannot use local user data for Chrome while running Selenium
I am running python program with Selenium to automate browser page processing. In order to open the pages correctly, I need to use my login and password saved in the Chrome user profile for my website....
0
votes
0
answers
109
views
.NET Selenium Driver with Authentication - Handling Authentication Failure
With .NET and Selenium, I'm using Chrome drivers to navigate pages and retrieve their content.
Consider the following code where I use basic authentication to retrieve a page content. I'm targeting ....
-3
votes
1
answer
60
views
Facing this query while executing Selenium Test by TestNG
Earlier it was launching the browser successfully but it now is not even appearing.
[main] INFO org.testng.internal.Utils - [TestNG] Running:
E:\JenkinsPractice\Jenkins 1\testng.xml
[main] INFO io....
0
votes
0
answers
42
views
kiosk printing not working in Chrome 136.0.7103.114
I was using
options.addArguments("--kiosk-printing");
in my test when initializing Chrome driver everything was working fine for months and now I cannot get this to work anymore the print ...
0
votes
1
answer
84
views
Chromedriver with proxy
We have a test software based on chromedriver. The test is a site check from one computer, but under different proxies. The proxy is connected via a JavaScript script. About a month ago, I had to edit ...
1
vote
0
answers
260
views
Error: {"code":-32000,"message":"Browser window not found"} with usage --auto-open-devtools-for-tabs
everyone, after updating chromedriver from 136 to 137, I caught:
{"code":-32000,"message":"Browser window not found"}
I found that the problem with --auto-open-devtools-...