Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
5,007
questions
0
votes
1
answer
20
views
I am learning Page Model Object, i was trying to make this program work but i am getting the "NullPointerException" error everytime. can someone help
FrameWork code:
package FrameWorks;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support....
-1
votes
0
answers
12
views
How to use the same browser instance to run multiple gherkin tests?
below is my 1st step definition for the the step "And Open chrome Desktop and Log in with 'patient_006' user name and 'Minimed@1' password for WebView"
// @dart=2.9
import 'dart:async';
...
0
votes
0
answers
35
views
How to connect to a Anti-Detect browser (Incogniton) using selenium java
I want to connect to a browser session of this specific anti-detect browser called Incogniton.
It does support Selenium browser automation, but it only supports Python. I don't know anything about ...
5
votes
3
answers
3k
views
Test Automation for different user roles within an application - Selenium and C#
I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application;
Our application has many roles a user can be; such as an admin, ...
0
votes
4
answers
469
views
Playwright vs Selenium
I have used Selenium for several years to automate UI tests, one of our new devOps guys used to be a QA and he introduced me to Playwright recently. On the surface it seems like Playwright solves a ...
0
votes
2
answers
645
views
Selenium version 114.0.5735.16 not working
driver = webdriver.Chrome(service=Service(ChromeDriverManager(version='114.0.5735.16').install()), options=options)
I have been using this code with selenium version 114.0.5735.16 up until recently ...
1
vote
1
answer
70
views
CPU issues after upgrade to Selenium V4.11.0
After using selenium 4.11.0 version and launch error for 116 browser launch error was resolved.
Has anyone observed Maximum CPU utilization issue after changing to selenium 4.11.0?
I was using ...
-1
votes
0
answers
19
views
When I executing the following code [closed]
Could someone help me to find the solution or reason for this?
0
votes
1
answer
162
views
Java selenium - null pointer exception on webDriver inheritance
I am getting null pointer exception. Would you be able to help and what should be fixed ?
java.lang.NullPointerException
at pages.LandingPage.acceptConsent(LandingPage.java:14)
at
stepDefs....
0
votes
1
answer
442
views
Able to find xpath, but trying to click button throws exception
I tried to click on an element using the code below but it is throwing Exception: No Such Element Selections
WebElement clear=driver.findElement(By.xpath(PageUtility.OPEN_LOCATION_POPUP_XPATH)); ...
4
votes
1
answer
2k
views
How to use multiple wait conditions in Selenium Webdriver using ruby?
I wanted to know, how I can use following waits in program at which situations?
driver.manage.timeouts.implicit_wait = 20
driver.manage.timeouts.script_timeout = 20
driver.manage.timeouts.page_load = ...
1
vote
1
answer
162
views
(Ruby) How can I invoke multiples Selenium Webdriver just in one browser POM
I'm a newbie on ruby language... Currently, I am using POM (page objects model) with Selenium webdriver.
This is my trouble:
As I'm using selenium with POM, I have 3 classes (register.br, login.br ...
0
votes
1
answer
211
views
Getting this error when i run my java appium script
When I save and run the code the compiler is showing error with respect to DesiredCapabilities I thought I might have made an error while importing the jar so I uninstalled everything and installed it ...
1
vote
3
answers
4k
views
How to automate KendoUI dropdown with selenium webdriver and C#
Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#.
Sendkeys doesn't work for KendoUI.
Here is my HTML:
<div style="background-color: #e6e6e6;...
0
votes
2
answers
1k
views
Could not load type 'OpenQA.Selenium.Internal.IWrapsElement'
Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'.
Stack Trace:
DefaultPageObjectMemberDecorator....
1
vote
3
answers
480
views
Switching from inner iFrame to the outter (parent) iFrame
I have an iFrame in another iFrame, I´am able to switch to the parent iFrame and then to the child iFrame, but I´am just not able to switch back to the parent one. Is it even possible to switch up top ...
0
votes
2
answers
924
views
How to generate report using extent reports in Page Object Model in C#
I have created a POM framework using NUnit in C#. I have created Reporting.cs file which creates reports for the test in that class. How I can generate reports for all tests in different classes ...
0
votes
3
answers
134
views
How to get content of an clickable element in Selenium?
Facing issue to read content after clicking an element in Selenium. I have tried with below code:
if(webElement2.isDisplayed()) {
webElement.explicitWaitToClickElement(4,webElement);
...
0
votes
2
answers
53
views
Scrolling using the same code is working 7/10 times
With same code I have tried scrolling, firstly I scrolled to bottom then top and then to element so that element can get loaded properly even though sometimes testcases are failing due to scrolling
...
1
vote
1
answer
562
views
Is it a good design to use a single Webdriver instance in Base Class and then each Page Object class inherits the driver instance in Cucumber Steps?
Im using Cucumber BDD framework with Selenium+Java. Now, I have made on BaseClass.Java in which i declare on public static WebDriver driver;
Now, in my .feature file i have many scenarios and in each ...
-1
votes
2
answers
2k
views
How to get incremental xpath for newly added rows in webtable using robot framework-python-selenium
I came across a certain requirement.
There is a web table where new rows are added daily.I want to write an automation script in Robot Framework-Python-Selenium-Eclipse-RedEditor Plugin. Right now, I ...
3
votes
3
answers
540
views
Why doesn't my XPath find my element on the page?
I am trying to retrieve the content of the header and each chapter which is a repetitive structure as you can see below. For this am using Selenium and C#.
My attempt, using xpath, is this:
string ...
1
vote
1
answer
4k
views
Unable to handle Google Authentication pop up window in robot framework test case
I am having a problem on handling google authentication pop up window in robot framework.
The process I want to automate is -
When a button( Sign in with google) is clicked , google authentication ...
0
votes
2
answers
67
views
How to assign an IP to a seleniumGrid
I need seleniumGrid to be accessible via localhost (127.0.0.1) and instead of that, it is being offered in address:port 192.168.1.39:4444
What command option can I use to make it use localhost?
The ...
1
vote
2
answers
1k
views
Click getting to lower item (under dropdown) instead of dropdown in Selenium
I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it.
Before the ...
1
vote
2
answers
212
views
Strange drop down automation problem - multiple select
I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
0
votes
1
answer
10
views
Every Vusers should pick new file
Vusers- 10, Files -250 ,Duration - 3600
Target is to upload 250 Files and file names is Payroll0, Payroll1 ,Payroll2, Payroll3,....Payroll247, Payroll248,Payroll249, Payroll250.
Using JMeter Selenium ...
2
votes
2
answers
749
views
Not able to match ChromeDriver version with chrome version
So at my current job I’m at a pinch, we can’t just download executable jars and use them. We have to request to download whatever we want . So the problem is , our chrome gets auto updated where as we ...
0
votes
1
answer
3k
views
Unable to create new service - Selenium + Jenkins
I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
1
vote
2
answers
1k
views
Selenium Python - Unable to find an element, get stale element exception when using element locator
Scenario:
1.Login to a website using script and navigate to the Home page.
2. On the home page, click a link and navigate to a new page.
3. Then navigate back to the home page using the top navigation ...
2
votes
3
answers
860
views
Close a one windowHandler at the Webview
I am writing scripts to automate a hybrid application.
On my app I have two windowHandles.
For example, after performing some actions when I execute below code I get "2" windows as the windowHandles ...
-1
votes
0
answers
33
views
Consolidate Extent Report into single report with module project
I had several independent IDEA maven project which run perfectly fine. I need to combine them into one single parent project due to consolidate reporting issues.
The purposes of create such multi ...
-1
votes
0
answers
27
views
Run module test project from Parent Project
I had a parent project with several modules project called module Bulitv3, NST, BHarian, and FMT. Each of them has their own test manager.
How to run from the parent project test manager called ...
0
votes
2
answers
3k
views
While reading repository properties file getting error response as: The method click() is undefined for the type Object
Code isn't able to read Properties file. It returns validation error message in response;
The method click() is undefined for the type Object
Properties obj = new Properties();
FileInputStream ...
0
votes
1
answer
587
views
Firefox throws an error message through WebDriverManager
Firefox is mostly working, but the last test case failed - it won't click on an element.
unable to read VR Path Registry is the error message.
In Internet Explorer, it loads the browser, sometimes ...
0
votes
3
answers
751
views
SyntaxError: invalid syntax // SyntaxError: unexpected EOF while parsing
How do I detect text inside of this, this is HTML & this is XPath. I tried
HTML
<span class="messageText">Hello.</span>
XPath
//*[@id="liveAgentChatLogText"]/span[22]/span[2]
...
0
votes
1
answer
12
views
Every Vuser should pick different file name
Using JMeter Selenium for web based application so every Vuser should pick different file.
Ex:-" User1 ---->Payroll1,User2------>Payroll2,User3------>Payroll3,User4------>Payroll4........
0
votes
2
answers
1k
views
How to grab other data inside class with Selenium
<svg aria-label="Unlike" class="_8-yf5 " color="#ed4956" fill="#ed4956" height="24" role="img" viewBox="0 0 48 48" width="...
0
votes
2
answers
665
views
Selenium, data driven testing using NUnit and SQL queries.
I am developing a Selenium Test Automation Framework for the purpose of testing multiple websites.
I have currently set up the Framework in Visual Studio using C# and implementing the Page Object ...
0
votes
3
answers
1k
views
Selenium driver for web app testing on chrome in incognito windows
So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
0
votes
2
answers
4k
views
Finding sibling of found element using selenium
I've got a field with a date in it that's identified by a code that's shown in the div previous to it.
<div class="fcode">
<div class="fcode_n">(123)</div>
...
0
votes
1
answer
2k
views
Selenium + Python: how can we close all opened tabs except the first tab/main tab?
This is my code,
'''
import time
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
from selenium.webdriver.support import expected_conditions as EC
...
0
votes
1
answer
129
views
ScreenShot taken isn't of what's showing in the screen, but rather that of the header until a page size
When I try to take a screenshot, I added a scroll so that it can take a significant screenshot and not only the header. Right now, the picture is still taken from the header/top of the page.
Am I ...
0
votes
1
answer
117
views
Unable to locate element: {"method":"xpath","selector":"//*[@id="root"]/div[1]/div/main/div/section/div/section/div/div/ul/li[1]/a"}
The chrome browser version is Version 115.0.5790.171 and downloaded chrome driver version is 114
[![enter image description here][1]][1]
as driver version 115 is not available.
I'm using the x-path ...
1
vote
1
answer
706
views
Unable to run test on gitlab pipeline due to DevToolsActivePort file doesn't exist
I created a sample Selenium Webdriver test using java and maven and pushed it out to my gitlab repository. Then I created a new pipeline to run the automated tests. This is my first time running a ...
3
votes
2
answers
4k
views
Headless Chrome browser won't switch to next window (Selenium + Python)
So I have a test case: When clicking a button a new window is opened. To switch to that new window I use:
window_after = self.driver.window_handles[1]
self.driver.switch_to.window(window_after)
When ...
2
votes
1
answer
211
views
How do we generate load in the queue using selenium?
We are trying to generate videos (video streaming via Youtube URL's) in the queue. Some of the users will be watching the videos in FIFO Format so we would like to know the process where we can push ...
1
vote
3
answers
7k
views
How to upload an image selenium webdriver with javascript?
driver.wait(until.elementLocated(webdriver.By.css('div.border-right:nth-child(2)')), 1000)
.then((element) => {
element.click();
});
I am using java-script for my test cases. I had an issue to ...
-1
votes
1
answer
33
views
I am facing an issue on selenium java jenkins framework. Element working on Local maven project build but not working on Jenkins
And And I enter Auto Created Reseller in BA Reseller add button edit field
org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression None ...
0
votes
1
answer
65
views
Calculate the total of liabilities and check it is matching with the given value
I want to calculate the total liabilities amount from webtable and need to compare with the total amount which is present on webpage.
I got the following error :
Illegal/unsupported escape sequence ...