157,746 questions
0
votes
0
answers
27
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
...
1
vote
2
answers
77
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
137
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
3
answers
94
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
51
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
53
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
39
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
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'...
-1
votes
2
answers
72
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
71
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
68
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
95
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
93
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
123
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
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(...
-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
66
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
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
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
82
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
145
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
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 ...
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
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 ...
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
87
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
105
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
79
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
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
80
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
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 ...
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 ...
1
vote
0
answers
75
views
The same Selenium search consistently returns two differen results
I wrote a Python 3.11 module which contains a Selenium 4.35 method to locate a particular section of a webpage. Then it is supposed to find all the links in that section. I want to follow those links ...
0
votes
1
answer
77
views
How to add session ID to Cookies once for seleniumbase test session?
I used to use pure Selenium previously and back then I added Cookie to my webdriver object in webdriver init fixture like this:
@pytest.fixture(scope="session")
def webdriver_fixture(...
-4
votes
1
answer
100
views
What is missing in selenium code to get complete html code to use with beautifulsoup?
I've recently learned how to webscrape with beautifulsoup and now I'm trying to learn a bit about selenium because I couldn't get correct info with beautifulsoup alone. I think there is javascript ...
-1
votes
1
answer
117
views
Weird failure in Selenium
I'm trying to run this script
#!/usr/bin/env python3
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver....
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
126
views
Scraping archived content [closed]
I am a bit new to webscraping and trying to build a scraper to collect the title, text, and date from this archived page:
from selenium import webdriver
from selenium.webdriver.chrome.service import ...
0
votes
1
answer
107
views
Response code 500. Message: session not created: DevToolsActivePort file doesn't exist (Chrome 140.0.7339.207 )
I am using Selenium4 with Java and Jenkins is running on Linux machine. I have updated my chrome on Linux to 140.0.7339.207 and I am not downloading Chrome Driver explicitly as Selenium4 Driver ...
-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 ...