All Questions
Tagged with selenium or selenium-webdriver
157,748 questions
0
votes
2
answers
52
views
Selenium/Python: Trying to display choices in a dropdown menu
I have a similar question that's being worked, but I made an error and I don't think editing the other question makes sense as it requires a complete rewrite and would make the original question (and ...
1
vote
1
answer
35
views
C# Selenium using Kendo-dropdownlist, Actions (mouse) do not work. Space bar, arrows keys do work
Here is code I'm using to scroll through a list of districts:
IWebElement districtsList = modelAddInvoice.ReturnDistrictInvoiceAddDistrict();
districtsList.Click();
districtsList.SendKeys(Keys....
0
votes
2
answers
24
views
SeleniumBase + UC Driver increase script timeout
i've been trying to run a script is my browser but i'm not able to increase the maximum timeout, no matter what I try, is it possible to make a script run longer than 30 seconds, can get the result in ...
-1
votes
0
answers
18
views
Getting issue after converting jar to exe file [closed]
I'm exporting maven project from eclipse into jar file after exporting jar file is executing successfully
Im converting the jar file to exe file using Launch4j
In that selected output file and ...
Advice
0
votes
1
replies
31
views
How can I automate captcha bypass in Selenium when scraping a website?
I’m trying to automate the login flow on a website using Python and Selenium.
As soon as I submit the username and password, a reCAPTCHA v2 appears and the WebDriver just gets stuck on it. I’ve tried ...
1
vote
3
answers
50
views
How to select a dropdown built as a button (Selenium/Python)
I am trying to select choices from a dropdown menu, using Selenium with Python. The menu might be built as a button as I had no luck trying to use Select. It also might be a Bootstrap dropdown. Here ...
1
vote
1
answer
28
views
TimeoutExeption in Headless mode
I’m working on a Python project using Selenium and pytest. All tests pass locally in normal (non-headless) mode, but when I run them in GitHub Actions or even locally in headless mode, many of them ...
1
vote
0
answers
118
views
How to attach a PDF file on WhatsApp Web using Selenium? (Error: “The file you tried to add is not supported”)
I’m trying to automate sending messages on WhatsApp Web using Selenium (Python), and I need to attach a PDF file.
This is the code I’m using:
from selenium import webdriver
from selenium.webdriver....
0
votes
0
answers
22
views
Invalid content signature Selenium/Docker
I have a Docker setup running automations 24/7 in both Chrome and Firefox browsers. However, for about a week now, Firefox has been failing and showing the error that appears in the image.
Anyone can ...
0
votes
1
answer
42
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
1
answer
42
views
I have problem where i have an .exe application and i am trying to open it but it is giving me the error as shown below. I am attaching the code below [closed]
import subprocess
import os
from selenium import webdriver
from time import sleep
import getpass
username = getpass.getuser()
sleep(5)
port = str(_AD_.Port)
##print(port)
cmdurl = 'http://localhost:{}'...
0
votes
1
answer
36
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
2
replies
37
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 ...
0
votes
2
answers
93
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 ...
-4
votes
0
answers
64
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 ...
-1
votes
1
answer
55
views
Best practices for handling Login CAPTCHA in Python RPA for legacy data migration (No API) [closed]
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
87
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 ...
-1
votes
1
answer
62
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
40
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
135
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 ...
1
vote
2
answers
125
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
84
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
58
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
42
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
178
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
79
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
81
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
83
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
98
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
46
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 ...
-1
votes
1
answer
115
views
selenium with google colab [closed]
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
136
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
107
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
76
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
131
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
68
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
419
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
74
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
88
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
156
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
114
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
2
answers
92
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 ...
1
vote
1
answer
45
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
106
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
90
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 ...