157,747 questions
-3
votes
1
answer
130
views
How do I avoid firefox when calling folium.Map._to_png()?
I am trying to generate a map using the folium library, but I cannot get it to work due to the lack of firefox on my machine which is an issue I am unable to fix by installing it, I need to avoid ...
1
vote
2
answers
88
views
Cannot click <a> element button with href="javascript:void(0)" with selenium
I'm using selenium in python and trying to click the "See all Properties" button to get to the next web page where all the properties will be listed and I can easily scrap the data.
Here's ...
0
votes
2
answers
66
views
Getting element using re.compile with bs4?
i try to find a span element using selenium and bs4 with the following code:
import re
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import ...
1
vote
0
answers
48
views
Running Jenkins agent through terraform userdata script, which makes the selenium tests to execute in headless mode
I have a PowerShell script which is passed as user data script in terraform for Windows Server 2022 VM creation in AWS cloud. This PowerShell script uses Jenkins API to create the node and connect the ...
0
votes
0
answers
138
views
Undetected chrome driver doesn't work in odoo model
I am trying to scrap a website from a model in odoo. It get executed using an action button.
I am using Docker to contain the app.
However the driver never worked for me, even with normal selenium so ...
0
votes
1
answer
102
views
Selenium WebDriver gets stuck after .get() method
I'm using Selenium to download several PDFs. To access the PDFs I use the .get() method of the WebDriver and instead of opening the preview I download the PDF directly through FirefoxProfile settings. ...
1
vote
2
answers
105
views
Selenium Edge add network capabilities in .Net
I want to get access to the Network in Dev Tools, while using the Edge webdriver.
I'm using Selenium 4.35.0
This is what I got so far:
Import-Module -Name "Path to module"
$Options1= [OpenQA....
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
2
answers
104
views
Selenium interaction with accordion list [closed]
I'm trying to scrape the data off this site.
The website shows a charging station, in this case you can click each to unravel the accordion and see the data per charger. I am trying to use this ...
2
votes
2
answers
142
views
How can I jump to a page (that isn't displayed in the nav) using JS and Selenium?
I am using python and selenium to look through a table with a lot of pages. I was wondering if it is possible to jump to a specific page of that table to continue searching where i left off previously....
0
votes
0
answers
124
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 ...
1
vote
1
answer
106
views
How to import an ssl certificate in a firefox profile programmatically using selenium
I have tried python requests and was able to load the certificate. But im switching to selenium since the website needs interaction.
Can you give me an input on how I implement in python selenium. Im ...
0
votes
1
answer
135
views
Headless Google Chrome in Pycharm doesnt work at the background using Pytest fixture
I'm learning auto tests in python, and in one video a guy using Mozilla for tests and he uses the following code block:
import pytest
from selenium import webdriver
from selenium.webdriver.chrome....
-1
votes
1
answer
2k
views
Selenium webdriver issue that means not supporting version 140 [closed]
I have a problem about webdrive issue my current webdrive is 138 and i update browser edge versin to 140 so i need help my program to execute and i see message onscreen this version only support 138
I ...
1
vote
2
answers
266
views
Default text reappears after being overwritten with intended text using Selenium Python
I am trying to extract bus prices between 2 cities in Ontario, Canada. I am using Selenium/Python to do this:
The website is here and it has default cities and dates.
Here is my Python code:
from ...
1
vote
2
answers
111
views
Selenium select from dropdown menu
I'm a bit new to Selenium and am trying to build a webscraper that can select a dropdown menu and then select specific options from the menu. I've built the following code and it was working at one ...
1
vote
4
answers
90
views
Modal Popup - Selenium/Python
I am automating a confirmation request, and my code gets me all the way to the end, but when it comes to actually confirming my reservation, there is a popup modal window that appears as a layover on ...
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
2
answers
86
views
Problems in running Selenium in EC2
I'm having problems in running my python program on Amazon EC2. Everytime I try it gives me the following error:
Traceback (most recent call last):
File "/home/ubuntu/precobtc.py", line 22,...
0
votes
0
answers
67
views
How to start Selenium standalone server from a PHP script?
In my PHP script I am using php-webdriver library with Edge webdriver to get data from a web page and I need to start Selenium standalone server from the script. I copied selenium-server-4.35.0.jar, ...
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
1
answer
70
views
Unable to click checkbox inside Glide DataGrid cell using Selenium or Playwright
I'm trying to automate a click action on a checkbox located inside a table cell. The table is developed using Streamlit, which internally uses Glide DataGrid.
I've tried both Selenium and Playwright ...
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 ...
2
votes
2
answers
92
views
Get url of second tab using selenium?
I'm trying to get the second tab url using the following code -
import time
import os, sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver....
0
votes
1
answer
112
views
Python Selenium find nested element [closed]
on this page I want to parse few elements.
I would like to get text in circles and use attribute value to click sometimes.
That code returns anything. With this code I want to get all attribute ...
0
votes
2
answers
94
views
Button press TAB not working in selenium python
I am trying to make a script, which would share a particular post along some groups in Facebook.
Everything is working smoothly, until choosing the group to repost the post in.
I have decided to use ...
0
votes
2
answers
321
views
java.lang.NoClassDefFoundError: org/openqa/selenium/remote/html5/RemoteLocationContext
Since 15/08/2025, the Appium-based automation framework I work on started throwing the following error when executing any test case:
Filename: specs\mobile_automation\passenger\revamp\smoke_tests\Ride\...
0
votes
0
answers
41
views
Selenium 4.28+ problems in Java/Kotlin Maven project - libraries not found
I have a Maven project, running Selenium (and Cucumber) in my test suite.
Currently, I'm running Selenium 4.27, with selenium manager handling the ChromeDriver etc.
Trying to upgrade to Selenium 4.28 ...
0
votes
2
answers
155
views
Trying to run selenium in linux but can't find driver
-rwxr-xr-x 1 kyle kyle 6132584 Feb 24 09:27 /usr/local/bin/geckodriver
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/kyle/.dotnet/...
2
votes
1
answer
118
views
How to disable selenium logs AND run the browser in headless mode
This is my code as of now:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
options = webdriver....
-1
votes
2
answers
140
views
Python Selenium. Wait for page fully loaded [closed]
I am trying to implement website automation. Before I start to interact with website, I have to wait until page is fully loaded. The website work with great amount of data and fetching it from ...
1
vote
2
answers
80
views
Trying to do Selenium testing in Django in Docker getting ERR_CONNECTION_REFUSED
I am trying to get Selenium testing going in Docker with Django. But I keep getting ERR_CONNECTION_REFUSED when using the live_server_url. I have tried to use django's container with f"http://...
1
vote
3
answers
973
views
Error org.openqa.selenium.html5.LocationContext not found when running Appium 9.5.0 tests
Last week, I was able to compile and run my tests using Appium Java Client 9.5.0 without any errors.
However, when I tried to run the code again yesterday, I started getting this error:
error: cannot ...
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
"&...
2
votes
4
answers
173
views
How to scrape a website that has <span class="ellipsis">…</span> in between number on a dynamic table with Selenium Python
I am trying to scrape dividend data for the stock "Vale" on the site https://investidor10.com.br/acoes/vale3/. The dividend table has 8 buttons (1, 2, 3, ..., 8) and "Next" and &...
0
votes
2
answers
85
views
TypeError: Object of type RelativeBy is not JSON serializable using find_elements with Relative Locators
Why am I getting the error below when the method signature of find_elements() apparently does support RelativeBy? I bypassed this error by not using relativeBy.
Using selenium 4.33.0 and python 3.13.6
...
0
votes
1
answer
185
views
Selenium can't get performance log in iframe of google spreadsheets
Environment:
ChromeDriver 138.0.7204.168
Chrome 138.0.7204.184
Selenium 4.34.2
Windows 11
I shared a spreadsheet by iframe, and embeded it to a web page a.html:
<html>
<head>
</head&...
-2
votes
2
answers
146
views
cant find element with Selenium [closed]
I'm getting the following
An error occurred: Message:
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys....
1
vote
1
answer
74
views
How to verify button click in Selenium with proper exception handling using TestNG?
I am working on a Selenium automation project using Java + TestNG.
I want to verify that a button click works as expected, and I need to ensure:
The button click is attempted with proper try-catch ...
1
vote
2
answers
294
views
How to download protected PDF (ViewDocument) using Selenium or requests?
I'm trying to download a protected PDF from the New York State Courts NYSCEF website using Python. The URL looks like this:
https://iapps.courts.state.ny.us/nyscef/ViewDocument?docIndex=...
3
votes
1
answer
212
views
Selenium Headless vrs Non Headless. I can't get Selenium to set a field while using headless mode
I saw I needed to add a window size however that did not fix my issue
here is the working Non headless code
# _-_-_- Non Headless -_-_-_
from selenium import webdriver
from selenium.webdriver.common....
-1
votes
1
answer
66
views
Python Selenium: How can I specify a "no timeout" WebDriverWait?
I'm using Selenium WebDriverWait in a Python function decorated with @timeout(). Since timeout is handled at the function level, I really don't need WebDriverWait to timeout. Is there a way to have ...
4
votes
2
answers
285
views
How to reliably download 1969 “Gazzetta Ufficiale” PDFs (Italian Official Gazette) with Python?
I’m trying to programmatically download the full “pubblicazione completa non certificata” PDFs of the Italian Gazzetta Ufficiale – Serie Generale for 1969 (for an academic article). The site has a ...
-3
votes
1
answer
111
views
POJO class retains old values during multiple test execution
I am having pojo class with Lombok @data annotation. pojo classes are static in calling classes. So When I execute multiple selenium tests say test 1 and test 2, during test 2 execution, pojo fields ...
1
vote
2
answers
471
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
...
0
votes
2
answers
89
views
How do I kill any hanging instances of safaridriver
We have a new test selenium/C# test suite which runs against a app on a Mac using Safari Driver.
Every now and then a test will fail and the next text will not start because safari is still running ...
0
votes
1
answer
109
views
Why is RelativeBy not accepted in find_elements?
versions: selenium 4.33.0 and python 3.13.5
Selenium 4 provides RelativeBy that can be produced with locate_with method. Information can be found here under relative locators, and python api doc.
...
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 ...
-1
votes
2
answers
96
views
How to find this HTML element with Selenium/Java
I've tried several ways, but I just cannot seem to get Selenium to resolve to this HTML element on a page:
<button class="btn__primary--large from__button--floating" data-litms-control-...