Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
567
questions with no upvoted or accepted answers
2
votes
0
answers
528
views
decompose an HTML list with page fragments
note: Looking for simplest possible example of PageFactory and fragments. I've been referencing an article which uses additional libraries I wasn't aware of.
The desired structure:
Where there's ...
2
votes
2
answers
137
views
Element is not identifed in the second test method
I have a strange behavior : I created Test Class with 2 Test Methods as below.
When I call AddLimitedBuyOrderwithRandom in the first method it works fine without any exception, but if I call ...
2
votes
2
answers
3k
views
To work with two different drop downs which are dependent on each other
I have a scenario, which I am finding bit difficult to automate.
The test scenario is :
There are two drop down.
To select the state.
To select the respective cities.
So, I need to write a script to ...
2
votes
0
answers
62
views
Is it possible to have different logger paths per cucumber features or scenarios?
So I'm using selenium with cucumber and right now and run my tests sequentially, at the end of the execution I collect the log and the prints.
My question is, once I start executing them in parallel, ...
2
votes
1
answer
225
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 ...
2
votes
1
answer
635
views
unable to run test cases in IE browser in protractor, selenium framework for angular.js web application
I was trying to execute test cases in IE, and I'm facing errors as shown in error picture, my config file is shown below.
Using IE 11.09 with Selenium WebDriver-4.0.0 in Windows Server 2012 R2 ...
2
votes
1
answer
70
views
How to implement seleniums LoadableComponent with a fluent API?
How do we implement LoadableComponent, when we have a fluent API, lets create a basic set of classes, shown below:
public class LoginPage {
// @FindBy locators
public DashboardPage login(...
2
votes
0
answers
1k
views
Selenium Chrome Driver: How to Load all the Frames and get the Complete Page Source?
I'm developing an web application that monitor changes in other websites.
I came across some of the websites and that contain load of Frame set and Frames.
I'm using the below code:
var ...
2
votes
0
answers
1k
views
Selenium running Firefox instead of IE or Edge
I am trying to get Nightwatchjs tests running with Chrome, Firefox, IE, Edge, and mobile web browsers (iOS, Android, etc). I'm having difficulty getting Selenium to open up a non-Firefox browser. ...
2
votes
4
answers
2k
views
Gecko Driver not navigating to URL
i am having a funny issue with my gecko driver. The browser loads however it does not redirect to the URL as stated below.
Dim fireDriver As New FireFoxDriver(New FireFoxOptions() With {....
2
votes
0
answers
46
views
JQuery Not working after updating NUNIT to 3.7
I have used to find an element using jQuery select0r.
This is how am trying to find out the element.
var linkDom = new DomElement(DomElementType.JQuerySelector, string.Format("{0} a:icontains(\"{1}\")...
2
votes
0
answers
552
views
Unable to locate the elements of SmartGWT application using Selenium in IE browser
I'm testing a GWT + SMARTGWT application and I'm trying to locate the elements of this web application using Selenium Webdriver. The method which I have used to locate the elements is by the relative ...
2
votes
0
answers
4k
views
Data driven using xml file in java selenium
I have already used the data driven approach and executed the test cases using excel file. I mean the data is extracted from excel file. Now I want to extract the data from xml file and execute the ...
2
votes
0
answers
106
views
Selenium IDE Firefox: how to find different divs with specific content?
I have a test case where I need to check if follow feature works correctly. It is quite tricky because in app there is three different types of accounts based on user's activity and it is reflected in ...
2
votes
0
answers
330
views
Change label in webpage using jscriptexecutor of selenium
We have an AUT a web application which is in Japanese. We are trying to follow below approach (not sure if it is correct) to get the Japanese label text into English.
Approach (using Selenium):
Open ...
2
votes
3
answers
922
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 ...
2
votes
0
answers
764
views
Selenium Virtual Frame Buffer on Windows
I have a requirement to run a process that itself requires the functionality of the Firefox browser. Currently, I run this process on a laptop, so having Firefox running is not a problem.
However, ...
2
votes
3
answers
4k
views
Selecting element value from drop down list with selenium using POM
I'm trying to make a simple test to register in website - https://www.midomi.com/. I'm using c# and selenium but have stuck in selecting values from a dropdown list using Page object model. My project ...
2
votes
1
answer
519
views
unable to move to button with selenium webdriver
Hi I am trying to write test script using selenium webdriver to log in to ms dynamics free trial registration @ https://www.microsoft.com/en-us/dynamics/free-crm-trial.aspx I am stuck at one of pages ...
2
votes
1
answer
267
views
Clicking on java script generated dynamic elements using Remote Web Driver in selenium
I have one web page, all the elements on that page are generated by java script code. I want to click on one of the button on that page, I was able to do this using the chrome driver,FF Driver but ...
2
votes
1
answer
5k
views
Using Protractor Cucumber JS: When running a test, the test passes when it shouldn't
I'm writing a test where I should log in. It passed given the proper inputs but when I change its password/username to garbage, it still passes. I'm new to this and I really think I missed something ...
2
votes
1
answer
1k
views
Selenium Webdriver runs in root but not in non-root account
I have this problem that when I run in root account it works properly with the test cases returning as expected. But in a non-root account it keeps giving me an error. Thanks in advance if you are ...
1
vote
0
answers
15
views
What is a definition of 'Renderable canvas' in a context of web based test automation
In description of 'location' property of Selenium WebDriver the term 'Renderable canvas' is used:
property location: dict
The location of the element in the renderable canvas.
Link: https://selenium-...
1
vote
1
answer
287
views
NET::ERR_CERT_AUTHORITY_INVALID while recording from playwright
While I'm trying to record the web based application using Playwright tool and after launching the application getting as NET::ERR_CERT_AUTHORITY_INVALID .
After recording and in the playwright tool ...
1
vote
1
answer
80
views
how to find project to contribute as automation tester?
I'm manual QA with 3 years of experience. At the same time I've learnt some automation and wrote autotests on java for selenium-based framework on the previous job. I decided to get more knowledge of ...
1
vote
1
answer
21
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 ...
1
vote
1
answer
485
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
vote
1
answer
55
views
WebDriver linkText with CSS manipulations
I have an HTML with the following element:
<a href="index.html" style="text-transform: uppercase;">index</a>
I'm using selenium-java 4.8.2, Chrome 112 and JUnit 5.9.2, ...
1
vote
0
answers
906
views
How to select city based on city name in mat-option-text?
I need to find a specific city from a drop down list. I have tried using the xpath but the id number for the city keeps changing. The element from the website is below:
<mat-option role="...
1
vote
0
answers
4k
views
downloading file using python
I want to examine a button that leads to downloading a file. the HTML contains:
<a class="calibre-push-button " href="/calibre/get/EPUB/123/calibre" role="button" ...
1
vote
0
answers
38
views
How to handle the google adds Window which display over the page
Add Pop Up coming when run the test suite and other operations where failed I tried to click directly on close button with x-path but it not work
1
vote
4
answers
217
views
Window handling in java selenium
Successfully handled the child window in java selenium but the cursor is not moving forward to the password field. My code is below
package perfect;
//import java.util.Set;
import org.openqa....
1
vote
1
answer
724
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
vote
0
answers
325
views
Selenium + C# : How to add list value in cookies?
This is my code:
IList<IWebElement> program = driver.FindElements(By.XPath("//*[@id='PnlGAPAncillaryPrograms']/table[2]/tbody/tr[1]/td/table/tbody/tr/td[2]"));
driver.Manage()....
1
vote
2
answers
545
views
Parallel selenium UI test failure rate has increase when compared to sequential execution
Recently I have implemented parallel selenium UI test execution by increasing Jenkins node count and creating multiple Jenkins jobs with different regression.xml files pointing to them.
In a nutshell ...
1
vote
0
answers
726
views
DOCKER org.openqa.selenium.remote.UnreachableBrowserException on Jenkins
I can run every test locally just fine
if I run my test on jenkins, on a docker file, I get this error
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible ...
1
vote
3
answers
3k
views
Selenium - Click on button in the last row of the table
I have the below script where I have taken the list of WebElement of the number of rows and subtracted with and then click on the Add button. But the problem over here is - script clicking on the Add ...
1
vote
1
answer
190
views
Selenium Java best practices for handling different languages and locations, and setting dynamic architecture
Im currently working on a platform that has multi-language options and also the language is defined by IP. So Im trying to build an architecture for testing both scenarios dynamically... The domain is ...
1
vote
2
answers
1k
views
On selecting the radio button how to get the text of the selected radio button where the text is in the next column
On selecting the radio button how to get the text of the selected radio button where the text is in the next column
I randomly select the radio button and then i need to Store the selected Radio ...
1
vote
0
answers
107
views
how to select the id that is just added and take that id and use it in another screen
My Scenario:
I need to create a Demand. After creation the Id of the Demand will be autogenerated
I need to fetch that id and use it in another screen
Question: While I created the Demand and try to ...
1
vote
0
answers
464
views
Selenium- Parallel test case using testng not working correctly. The same working fine in sequential mode
The driver instance initializes as Threadsafe. Till the launching of the browser and pass the URL everything seems to be working. But the credentials passing on anyone's browser, instead of all ...
1
vote
1
answer
851
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 ...
1
vote
0
answers
73
views
Mac running out of space after several UI automation runs
I am running UI automation locally using selenium webdriver, chromedriver, and jest, on MacOS. After several runs I run out of local storage. You can watch storage decrease by about 50 gb every run. ...
1
vote
0
answers
1k
views
How to perform mouse hover in selenium java using page object model approach?
I have automated some test cases mentioned at https://www.techlistic.com/2019/08/automate-buy-product-using-selenium.html For second test case mentioned at given link, I have written code for mouse ...
1
vote
0
answers
125
views
Protractor file upload hanging after send keys on IE11. Works on Chrome/Firefox
I have a Protractor/Cucumber script, that successfully uploads a file on Chrome/Firefox. When I run the same script on IE11, then the website hangs with the file dialog box open and no file sent.
The ...
1
vote
0
answers
532
views
How do I handle Chrome Autofill using Selenium Python?
I encountered an issue using the chrome autofill option. There is any way to handle the options list? (please see the image)
What I've done:
Load my Chrome Profile
Launch Chrome with my loaded ...