All Questions
Tagged with selenium-webdriver-python or selenium-webdriver
157,752 questions
0
votes
0
answers
17
views
Can't locate IWebDriver even though Selenium.WebDriver package installed
I'm trying to build some code from an old project. I have confirmed that the Selenium.WebDriver and Selenium.Support packages are installed but I am getting this error:
The type or namespace name '...
Tooling
0
votes
1
replies
23
views
chrome-devtools - possible to screenshot network traffic or record *.har traffic for offline presentation
I run some performance-tests (Grafana K6) and would like to screenshot the network traffic on the frontend nodes.
Is there a way to do this with Chrome Devtools, Selenium, playwright?.
I can do ...
-1
votes
2
answers
59
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 ...
-3
votes
0
answers
48
views
How to handle reCAPTCHA/hCaptcha challenges in Chrome automation for testing purposes? [duplicate]
I’m developing an automated testing framework that uses Selenium (including headless Chrome) to test web applications. During test runs, I frequently encounter CAPTCHA challenges — mainly reCAPTCHA v2 ...
0
votes
0
answers
38
views
Best practices for handling Login CAPTCHA in Python RPA for legacy data migration (No API)
I am currently working on a Data Migration project involving a legacy system.
We need to extract a large volume of data to migrate it to a new database. Unfortunately, this legacy system does not ...
0
votes
0
answers
62
views
Unable to locate an element with the xpath expression //span[@class='windowTitle']
OK I cannot figure out this error. We are running an IE test (testng with selenium) (which opens Edge) on a Jenkins machine. I keep getting this error "Unable to locate an element with the ...
-4
votes
0
answers
45
views
Instagram Comment Scraping using Selenium - Selenium not loading more than 15 Instagram comments [closed]
I’m working on a Selenium-based Instagram scraper (for learning purposes) and I'm trying to extract the first 20 comments from a post.
However, Selenium always returns only 15 comments, even though ...
-1
votes
2
answers
55
views
Selenium use database for Chrome but not for Firefox
I have an app for listing my books.
I want to test my code in chrome and firefox both, using the fixture in my database but without touching the real database. In the database I have some data for the ...
0
votes
1
answer
37
views
Selenium grid, firefox specific functionality
I have configured a selenium grid instance in kubernets. Which has a deployment that looks somewhat like this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenium-standalone-worker
...
2
votes
2
answers
107
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 ...
0
votes
0
answers
142
views
404 on certain files on select devices after repeated visits [closed]
I run a webserver on my local network to host my movie collection. I also have a custom android app running on an amazon fire stick. Recently I have been working to enable video playback from external ...
1
vote
2
answers
106
views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)? [closed]
How can I handle multiple <img> elements in Selenium when all of them have the same id attribute?
I need a way to automatically detect and interact with these images, even though they share the ...
1
vote
0
answers
60
views
ModuleNotFoundError: No module named 'webdrivermanager' with Spyder
Question: Why do I get the error I get, although to me it seems that the webdriver is in PATH?
Problem description and context:
I am trying to do some coding that requires using the webdriver manager ...
0
votes
0
answers
57
views
How do you connect to RSelenium local server with rsDriver()?
I was meddling with the RSelenium package when I type in the following code:
library(tidyverse)
library(rvest)
library(RSelenium)
rs_driver_lone<-rsDriver(browser="chrome",phantomver=NULL)...
0
votes
0
answers
40
views
Cannot open Selenium driver
I was trying to use RSelenium in RStudio. I put the following code into RStudio.
rs_driver<-remoteDriver(remoteServerAddr="localhost",
port=4444L,
...
2
votes
2
answers
72
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
121
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'...
-1
votes
2
answers
74
views
Selenium not setting value for <input type="datetime-local"> in React, value shows in UI but not in actual DOM
I'm automating a test using Selenium (Node.js) and trying to set a value for a datetime-local input. The UI visually shows the correct date/time, but when I inspect the element after driver.sleep(), ...
1
vote
1
answer
77
views
Take screenshot of whole html-page using python with selenium in non-headless mode?
I am trying to take a full screenshot of the whole html-page using the following code -
I would like to do this with selenium (not pyppeteer)
I am searching for a python solution (not Java)
I am ...
0
votes
1
answer
75
views
EdgeDriver Opens Brower but fails to open URL
I am trying to automate the Edge browser with Selenium. Below are the things I have already checked, but when I run the code the browser opens and doesn't navigate to the URL.
No firewall is blocking....
0
votes
2
answers
96
views
Login fields are not able to be filled out?
I try to fill out some fields on a website using the attached code -
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import ...
Advice
0
votes
2
replies
43
views
Selenium + Serenity BDD cannot find <tbody id="bodyArchivos"> inside iframe even though it exists in DevTools (Java + Cucumber)
I’m working on an automated test with Java + Maven + Selenium WebDriver + Serenity BDD + Cucumber.
The test needs to click the “Download” button of the most recent projection file in a table that is ...
0
votes
1
answer
101
views
selenium with google colab
Anyone working with Selenium in Google Colab has had trouble since yesterday, before 16hrs (UTC)
The code sample below was working all day long, but after lunchtime, it began to crash.
...
0
votes
3
answers
128
views
Using selenium assert with wait
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(...
Best practices
1
vote
3
replies
92
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(...
-4
votes
2
answers
75
views
How can I get BBFC ratings in python? [closed]
I am trying to write code to give me BBFC film ratings. I am using selenium to do this but would be happy with any solution that works reliably. After a lot of work I finally came up with this code:
#...
Tooling
0
votes
7
replies
125
views
Robot for Websites
Hi I need to create a robot that opens a website, does the sign procedure, then open another form and fill the data before sending the data to a post command by clicking on a button.
What is the best ...
1
vote
1
answer
67
views
Appium/Selenium c# windows shows an exception: Currently only pen and touch pointer input source types are supported
Regarding the Appium/Selenium 4 issue where complex mouse actions fail with the error: 'Currently only pen and touch pointer input source types are supported.'
Is there any official word, roadmap, or ...
2
votes
2
answers
364
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
72
views
Using HTTPkerberosauth with a javascript enabled web scraper
I'm working on integration tests for a web application that's running in a Docker container within our GitLab CI/CD pipeline. The application is a frontend that requires Kerberos/SPNEGO authentication ...
1
vote
0
answers
83
views
Browser console logs are empty when test fails
I’m trying to capture browser console logs using Selenium + Pytest, and here’s my current code snippet:
def test_capture_console_logs(driver, capture_browser_logs):
driver.get("https://www....
0
votes
1
answer
83
views
How do I run Playwright test with C# backend on Mac?
I have converted a test suite from Selenium to Playwright. This suite tests on a Windows PC using Chrome and Edge browsers.
This suite is written in Visual Studio with C#, Playwright, Reqnroll and ...
1
vote
1
answer
148
views
Creating a screenshot of the full screen using selenium in headless mode? [closed]
I try to create a screenshot of the full screen in selenium headless-mode using the following code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium....
2
votes
0
answers
58
views
How to properly handle native JavaScript confirm() in Laravel Dusk without triggering UnexpectedAlertOpenException
I’m writing a Laravel Dusk browser test for a “Delete Contact” button that shows a native JavaScript confirm() dialog before deleting a record.
However, every time the test runs, I get this error:
...
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
111
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 ...
3
votes
2
answers
90
views
ScrollDown using Selenium
i try to scrolldown on a website using selenium with the following code:
(i would like to scroll down on the left side of the website where you can see the entries)
from selenium import webdriver
from ...
2
votes
1
answer
44
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 ...
0
votes
2
answers
102
views
Web element going stale between FluentWait and performing action
I have inherited a bunch of flaky (Scala) selenium test - I am not a Selenium expert.
I am experiencing intermittent StaleElementReferenceExceptions between waiting for a WebElement and performing ...
2
votes
1
answer
88
views
How to run the AdGuard extension in WebDriver?
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium....
-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
106
views
How to convert a selenium driver to seleniumbase CDP driver?
I am trying to convert a selenium driver to seleniumbase CDP driver as codes below:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
opts = Options()
opts....
0
votes
0
answers
81
views
Error when trying to generate Allure reports
I am working on an automation with Selenium, Java, Maven, Junit. I want to use Alleru reports but when I try to run the mvn allure:server command, it generates the following error.
mvn allure:serve
[...
0
votes
0
answers
69
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
83
views
Issue with selecting element from dropdown list
I'm trying to test a travel website. When I enter the city code, the correct airport should be picked from the list. However, it enters the city code and does not proceed to pick up the city from the ...
0
votes
0
answers
50
views
How can I find MY session on a Selenium Grid webpage?
I am new to automation, so, I'm in a big company where possibly hundereds of developers currently share a single selenium grid. This results in a problem though, which, of this long list of Session ...
0
votes
1
answer
46
views
Selenium using chromium can't access a domain mapped to localhost
In /etc/hosts I map 127.0.0.1 example.com, because I want the user to be able to navigate to example.com like it's real but it's actually going to my local dev server. However, it seems like Chrome ...
0
votes
1
answer
83
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 ...
0
votes
0
answers
50
views
SSO Implementation Causes Browser Profile Popup in Jenkins Non-GUI Automation
We recently implemented Azure Single Sign-On (SSO) for our application. Since this change, our automated UI tests, executed via a Jenkins pipeline on a remote Windows Desktop agent in non-GUI/headless ...
0
votes
1
answer
69
views
How to select the validation pop-up messages displayed by the browser when a user enters incorrect data
Is there a way to select the validation pop-up messages generated by the browser when a user inputs an incorrect format, such as an invalid email address?.
I am writing a test case to verify whether ...