Questions tagged [selenium-webdriver]
Selenium WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.
selenium-webdriver
57,269
questions
0
votes
0
answers
8
views
Encountering a problem to interact with a weird button which is a combobox (select)
The problem is, The which I click the button it shows me a dropdown menu but the option elements are not visible in DOM. In this case, how can I solve it ?
The website is: https://www.pump.fun/board
...
0
votes
0
answers
5
views
Failing Recaptcha V3
I'm looking for assistance on creating a failed test case for Google reCAPTCHA v3. I've attempted to do so using Selenium Python automation, but it seems to be bypassing the reCAPTCHA entirely. ...
0
votes
0
answers
7
views
How to click the save or print button using selenium when the HTML page has shadow-root?
I want to scrape data using selenium and python. My chrome version is 123.0.6312.87 and web-driver is compatible with this chrome version. From this following page "https://web.bcpa.net/...
0
votes
0
answers
18
views
How to get the value of a specific element
If I inspect an element which is in the form of
<div class="count">8<div>
how to get the value 8 using selenium c#
I have tried using below method
//Getting text from element
...
0
votes
0
answers
14
views
How to parse data into cucumber's variables in feature file?
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file.
I will use this scenario to explain, in this ...
0
votes
0
answers
13
views
Getting NullPointerException when trying to use FindElements to read all elements
I'm a beginner in using selenium-cucumber, I was trying to automate a web application i have the page objects where i used findelements to get all the elements that is where i'm getting the Null ...
0
votes
0
answers
23
views
Selenium: "element not interactable error" when accessing the CAISO website but only for downloadNetDemandCSV, but not for downloadDemandCSV
I am trying to fix this code to extract data from it. The code is publicly available here: https://github.com/grgmiller/CAISO_operations/blob/master/CAISO_operations.py
This code used to worked in ...
0
votes
0
answers
13
views
Extract embedded video source link python selenium
This website has five server streams for all movies, and it shows you how to get the source link from server 2 easily. Thanks for your help, people.
def extract_embed_video(self):
self.clear()
...
-1
votes
0
answers
12
views
How do I automate a video download with Selenium and Python (Meta Quest Store Trailer Download)
I am looking to automate the download of the .mp4 video from https://www.meta.com/en-gb/experiences/4979055762136823/ using python and the selenium package. I am able to pop up and play the video with
...
0
votes
0
answers
21
views
How can I load all the elements of a webpage with Selenium? [closed]
The goal is to capture all the outerHTML within class="Item--content--12o-RdR"
Here is the URL I am trying to scrape from https://item.taobao.com/item.htm?id=767876514653
However some ...
0
votes
0
answers
14
views
Chrome Selenium CDP Bidi API - Next Commands sended to Target Session have no effect while the initial one does work
Hello everyone I'm facing a big trouble trying to hook TargetCreated Event and sending CDP commands to every new target found.
I'm using the last Selenium & Chrome.
I start a bidi session and send ...
-1
votes
0
answers
17
views
Why is the copied XPATH not working for selenium? [duplicate]
I'm trying to automate a game and I need to get the boxed element using selenium. I'm using python 3.11 and MacOS with M2 chip. I'm also using Chrome Version 123.0.6312.59 Link to picture of elements ...
-3
votes
0
answers
14
views
Devtools not working when i try to inspect elements for selenium python it goes to previous page [closed]
so this was the site i was trying to inspect elements extract video source
https://uflix.to/episode/x-men-97-2024/S01E01
and after i open the element se4lecter after a lot of research i got to know ...
0
votes
0
answers
18
views
Trying to extract data from divs within divs in Selenium
Here is the html:
<div class="AcuityResearchTerminalWidget__padding__S4eul undefined">
<div class="EventInfo__wrapper__Gkjqn" style="background-color: rgb(23, 32, ...
0
votes
0
answers
29
views
Selenium with Chromium driver on Raspberry Pi
I am trying to run a Selenium script from a JAR file on a Raspberry Pi Zero 2, and get this error:
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException: Unable to ...
-1
votes
0
answers
29
views
Web scraping with selenium python with captcha
I am trying to web scrap this website https://parade.com/968666/parade/chuck-norris-jokes/ to get the 101 jokes. It is just for practice. I get blocked even after manualy solving the captcha. I have ...
-1
votes
0
answers
31
views
Inefficient driver.get() performance in Loops with IEDriver
I'm using Selenium IEDriver to execute business operations on site A. When running the code on the server with userX via the command line, I notice that the duration remains stable at around 0.5 ...
0
votes
1
answer
22
views
Can't open a list of websites in selenium one by one?
As I am trying to automate a simple task of opening a list of websites one by one and close. But the program opens the first website successfully and closes it but it cannot open the next website in ...
0
votes
2
answers
19
views
Selenium Automation- how to iterate through the class element
How to iterate through multiple class elements using selenium python
launch_box = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[contains(@class, 'launch-button') ...
0
votes
1
answer
25
views
Selenium cannot load a page
I am using selenium to automatically login website https://fiverraffiliates.com/loginaffiliate/. But Selenium did not load the page.
It just displayed a white website and nothing happened (below image)...
0
votes
1
answer
15
views
Not able to identify the checkbox element ::before and ::after in Selenium
I want to click on the checkbox. Tried different methods. But not working. Any solution?
@FindBy(xpath="//label[@for='Tnc']")
Still its not getting the exact element of check box. Instead it ...
0
votes
1
answer
11
views
To enable syntax highlighting with color for JBehave stories in Eclipse
how to configure the IDE settings to recognize.story files (or any other file extension you're using for JBehave stories) and associate them with a text editor that supports syntax highlighting.
I ...
1
vote
1
answer
11
views
Could not instantiate class org.openqa.selenium.edge.EdgeDriver in Serenity
Serenity is unable to find the msedgedriver executable from the serenity.properties file. My properties file looks like this:
#webdriver.driver=chrome
#webdriver.chrome.driver = src/test/resources/...
0
votes
0
answers
24
views
Selenium java error :: unknown error: unhandled inspector error: {"code":-32000,"message":"Not attached to an active page"}
This is my code
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\xyz");
ChromeOptions options = new ChromeOptions();
options....
0
votes
2
answers
34
views
Selenium not managing to find the keyword in the website
Basically, I'm trying to get the program to find the keyword, and if it manages to do it, it will click the link to the pdf file in the page (for now i just want to print a confirmation message)
But, ...
0
votes
0
answers
17
views
SessionNotCreatedException: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist)
First time using selenium for automated testing. But I don’t know that something abnormal occurs after opening Google Chrome.
def init_wbe_driver(chrome_data_dir):
options = ChromeOptions()
...
0
votes
0
answers
12
views
Appium - Unable to take the locators from Appium for Apple Sign-In popup in 16.x OS version
In a native iOS Mobile app, we need to login the app through Apple sign-in using Mobile Automation.
From Appium, while trying to take the locator of the Apple sign-in popup, we are unable to take ...
0
votes
0
answers
12
views
filter of table with python and selenium (select option)
I'm trying filtering table with select option. I tried use DropDown select method but it's only choose but not click in this element. But I need action like directly click in this element (then ...
0
votes
2
answers
275
views
Python Selenium Chrome Driver version 123.0.6312.86
Previously I installed Chrome driver version 103.0.5060.53 on the conda virtual environment but now Chrome is updated with the newer Version 123.0.6312.86 so the script is not working I want to update ...
0
votes
1
answer
42
views
How do I get the fullscreen mode in firefox?
I've successfully achieved fullscreen mode in Chrome using the following WATIR code:
require 'watir'
chrome_options = { args: ["--start-fullscreen"] }
b = Watir::Browser.new :chrome, options:...
-1
votes
0
answers
15
views
Scrape Glassdoor data with selenium
I'm scrape the reviews data from glassdoor, and I test my code succesfully when I first finish the edit, but when I need to use them for large scale scrape, it always have a verify from cloudflare, ...
0
votes
2
answers
30
views
How to open new tab of Chrome using Selenium in vb.net
I have tried to send keys but it's not working.
IWebElement body = driver.FindElement(By.TagName("body"))
body.SendKeys(Keys.Control + "T")
I also tried action class:
Actions act =...
0
votes
0
answers
17
views
How can I run seleniumbase inside docker?
I have some seleniumbase code that works correctly normally, but in a Docker container, I get an ElementNotFound Exception, which does not happen when I run locally. Can anyone please help me?
This is ...
0
votes
1
answer
24
views
WebDriverError: Error forwarding the new session Error forwarding the request Operation timed out
I'm encountering the following error when trying to run my selenium testcase using selenium grid. It's really just a modified selenium example from their docs.
ChromeDriver is 123.0.6312.58
Chrome is ...
0
votes
0
answers
19
views
Visible not detected with Selenium in Python for element in a shadow root
I would like to find with Selenium the following button element:
<button class="walla-button__button walla-button__button--full-width walla-button__button--large walla-button__button--primary&...
-5
votes
0
answers
38
views
How to assert on list of actual values and list of expected values ?(using java) [closed]
There are two training sections and in each section there is a set of fields (training name, country, training Institute, training From, training To). I want to assert these expected vs actual values ...
-1
votes
0
answers
15
views
Element cant be found in any way with selenium [closed]
I'm attempting to toggle comments using Selenium, but it seems unable to locate the toggle button. I've attempted to locate every SVG element to confirm the presence of the '-' button, but it only ...
-1
votes
2
answers
32
views
Switch to second tab with Selenium Chrome - About:Blank
What's the correct way to switch to a second tab?
Right now I click a link on a website, which opens another window but the tab is about:blank.
I'm trying to do something on this page but Selenium is ...
-1
votes
1
answer
31
views
Why does this block of code functions as so?
Most of the main code
driver.get(url)
usernameelem = driver.find_element(By.XPATH,usernameId)
usernameelem.send_keys(username)
passwordelem = driver....
-1
votes
0
answers
17
views
remove line from captcha image
I'm scrapping captcha images from a website and converting them into text so that I can handle them, clear captcha are converted easily into text with pytesseract but captchas with line are not. Can ...
0
votes
1
answer
31
views
Selenium not finding specific element by class name, CSS selector, XPATH
I asked this question last month and have yet to find a solution, so I decided to switch to Selenium to see if that would help.
I'm trying to scrape this site and I've only been able to scrape the ...
0
votes
1
answer
39
views
Could not start a new session. Response code 500
Please help me.I use WebDriverManager for configuration drivers.
Configuration.browser = "edge";
WebDriverManager.edgedriver().setup();
but when run tests I have next error:
Step ...
0
votes
0
answers
20
views
Embedded pdf-file to blob with Python Selenium
Can someone help me out how to convert an embedded pdf-file to a blob (bytes like object) when using Python Selenium.
So far I could not find out how to do it. Some suggestions online use the request ...
0
votes
1
answer
18
views
run pytest with seleniumbase failed: "argparse.ArgumentError: argument --variables: conflicting option string: --variables"
when running a test case, it gives this error whereas if I only use Selenium it works properly and test case gets executed
from selenium import webdriver
from seleniumbase import BaseCase
class ...
0
votes
0
answers
23
views
webdriver error while working with selenium with python
I am getting this error
C:\Users\Admin\PycharmProjects\Testing\.venv\Scripts\python.exe C:\Users\Admin\PycharmProjects\Testing\firsttest.py
Traceback (most recent call last):
File "C:\Users\...
0
votes
0
answers
37
views
Not able to run selenium using ssh, getting chrome crashed error
I am trying to run selenium using ssh but getting chrome crashed error.
Command used over ssh :-
ssh -tt -o 'StrictHostKeyChecking=no' <ip-address> 'Xvfb :89 -ac -noreset \&;export DISPLAY=...
-1
votes
0
answers
20
views
How to click on value in popup form in Python with Selenium
I am having a trouble with a popup form in python using selenium. I would like to click into the select tag with option inside, but I always get error:
Message: no such element: Unable to locate ...
-1
votes
1
answer
18
views
How to login in Google with AWS Lambda
I have a script made in Python that uses selenium and undetected_chromedriver to login to Google and automatize some tasks.
It works fine on local, but now I want to deploy it to AWS Lambda and I have ...
0
votes
1
answer
14
views
Selenium script behaves differently in AWS Batch environment compared to local Windows PC
I have developed a Selenium script using Python that interacts with a website. The script runs successfully on my local Windows PC. However, when I try to run the same script in an AWS Batch ...
0
votes
0
answers
36
views
Parallel testing with cucumber, selenium and junit 5
My goal is to run features in parralel, but scenarios in order they were written.
I faced the situation where only adding this annotation to RunnerTest class allow to run tests in parallel
@...