Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
1
vote
2answers
18 views

how to send the DB fetched values to frontend using selenium?

I wrote a program where values are coming from sql database.Now i want to send those values to frontend using selenium. say it is an pincode i fetched from Database but now if locate the element where ...
0
votes
1answer
27 views

Web page Not Scroll on mobile using java

I try to scroll two pages of website on mobile but one page is working fine but 2nd page is not scroll on mobile. Both pages working fine on window. Please suggest me how to scroll 2nd page. Below is ...
0
votes
2answers
15 views

Unable to get the list of elements to select a text from the auto-complete text box using Selenium WebDriver

I am trying to enter a keyword to an auto-select box and select the specific text that I'm passing from the populated list. Keyword: text_customer Text needed to select: Constants....
0
votes
2answers
41 views

How to deal with overlay animation using selenium webdriver?

The web application I'm trying to automate test cases for uses an overlay animation every time page is refreshed or as the user navigates from one page to another. I have tried applying fluent wait ...
0
votes
2answers
43 views

Selenium Download Keep and Discard Problem (.cer or xml extensions)

I am Test Automation Engineer, working with Selenium and Java. I am developing selenium automation tests but I have a problem with downloading something from the software I am working on. Chrome asks ...
2
votes
2answers
50 views

Selenium and Powershell drop down menu select

Selenium WebDriver, using Chrome and Powershell. I'm trying to choose and click the 'en' value, from the drop down of the language menu. Here is the HTML Code: <select id="language_select"...
1
vote
0answers
40 views

Cannot locate elements with id having partial numeric values like //*[@id = “text_12986”] [closed]

There are elements with partial numeric values in id attribute. It was possible to verify the XPath syntax in the browser using //*[@id="text_12986"] XPath does not work in the Selenium when ...
3
votes
3answers
67 views

In Page Object Model does all classes need to share a single driver instance?

I can create a BaseTest.java file and declare Public static WebDriver driver; in it. Then all classes can extend and use the same driver reference. Then all my test classes can use same instance. Can ...
6
votes
4answers
96 views

What role does Docker play in Test Automation?

Should I learn Docker containers tool to run Selenium test automation. What's the purpose of learning it? Isn't it enough to run your automation project in Jenkins?
1
vote
2answers
35 views

How to plan selenium automation of webapplication when more than 1 person is involved

We are automating a web application, 3 people are involved using different machines and using bit bucket for code integration.how can we split the work and where to start from? As we may need to reuse ...
1
vote
2answers
45 views

Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit

I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features. I've only used Nunit as a test ...
0
votes
0answers
24 views

Moving test environments to AWS cloud

I'm new here and this is my first post. Currently we are doing manual testing within a local closed environment. Our Ops team is working on building an AWS environment using VPC, RDS for the DB's etc. ...
-4
votes
1answer
45 views

How to trick captcha?

I am currently working on a project that involves the extraction of products name and price from an online store, using Robot Framework. The problem is that after I go over a few pages/links (around ...
0
votes
4answers
52 views

Which is preferred in selenium automation using Java, writing tests by pages or functionality?

I am new to Selenium automation, in automating a web application which is preferred. Can we write scripts page by page or functionalities. How to identify that? if it’s page by page how we verify the ...
1
vote
1answer
46 views

Browser is closed only if test passed on VM

I use driver.Dispose(); and using ChromeDriver. But the browser is closed only if the test passed. On the VM if a test failed, the browser is still open. If I run tests from Visual Studio on local ...
0
votes
0answers
13 views

How to scroll current whole screen with UI Automator

I can scroll until get the specified text by the following code driver.find_element_by_android_uiautomator( 'new UiScrollable(new UiSelector().scrollable(true).instance(0)).getChildByText(new ...
0
votes
1answer
26 views

Trouble reaching a text object in DOM with selenium (java)

I have the below element in the page I am currently testing: <li> "At least 4 of the following rules must be satisfied:" <br> "Password should contain at least 1 upper latin ...
0
votes
2answers
51 views

Will AI based test automation tools make selenium webdriver obsolete in few years? [closed]

I have a fear that in few years companies will deploy AI based robotic process test automation tools and my java selenium programming skills will become obsolete.
0
votes
1answer
54 views

Cucumber- Selenium Getting null pointer exception while openBrowser method

I am getting null pointer exception when selenium tries to launch the browser. I have already checked step Definition. Selenium OpenBrowser Method. Chrome browser version. ( I have driver 87.04 ...
0
votes
0answers
21 views

Selenium ide Java generated code does not scroll

I am trying to automate a test suite by using selenium IDE, the idea its to generate the tests with the IDE and then export them to a java/jUnit format. The problem its that the the tests generated in ...
-1
votes
1answer
48 views

Amazon Home Page automation

I am trying an automation script with amazon and trying to select the category drop-down on the home page of amazon, but unable to do. I am providing the code below. WebElement Catagory = driver....
0
votes
1answer
55 views

Unable to run tests on edge using WebDriverManager with Selenium

My framework is based on Selenium + TestNG and for the binary management we are using Webdriver Manager (Boni garcia). I'm using MacOS Catalina 10.15.7 I can execute the suite on edge using a third ...
0
votes
0answers
68 views

authentication proxy with selenium C# 2020

This is an old problem but I can't resolve it. I created a chrome extension or Proxy auto auth.crx but it's too old. I used AutoIt but it has not resolved my problem. I saw the link Setting a proxy ...
0
votes
0answers
42 views

Click does not work selenium java

I have faced a critical problem in my work. I have passed 2 days but can not solve it. I have used several options but not working in automation but working in manual processes. I know I am wrong but ...
0
votes
1answer
53 views

File download verification with selenium and java

So I read all the other stackoverflow topics about this, none of the solutions worked for me so lets see if someone can help me. I need to verify a download (csv) from an export button in chrome(...
1
vote
1answer
52 views

locating element with one class out of multiple classes inside a div using xpath in selenium

I have below two input fields and I have to find there location I can't use class selector cause iI have to identify element based on formcontrolname and ng-invalid class <div> <input ...
0
votes
0answers
29 views

Cannot choose and click specific value in the table

Whatever companyCode I specify in the method it always chooses 3M Canada. Before it worked perfectly but after a few days it stopped even if I didn't do any changed in the code. The XPATH of the table ...
-1
votes
1answer
38 views

Error in Launching 2 chrome browsers using MultiThreading and perform same functionality simultaneouly

I am trying to launch two chrome browsers Simultaneously using Selenium ad cucumber, and perform same operations using multiThreading, but on one browser, operations get complete, whereas on another ...
0
votes
0answers
28 views

Jenkins does not upload a file to the browser when scheduled

I have a selenium script which in requires to upload a file (stored already in the HD) . This works well when i configure the script with Jenkins and click on "Build Now" button in Jenkins. ...
-1
votes
2answers
63 views

Migrate tests from Testim to Selenium

We have multiple tests scripts in Testim and after working for an year using Testim it seems Selenium is better suited for the UI automation and looking for available options to migrate Testim Scripts ...
-1
votes
2answers
23 views

Checking for changes after clicking element that redirects to a new page

Browser: Chrome I am testing that when you click on a button, it becomes disabled (account selection). However, my check does not get executed until after the new page loads. I assume this is part of ...
2
votes
3answers
73 views

Automation of Functional Testing across all browser

This answer Will the DOM structure vary for same HTML based on the browser made me think that if DOM renders the same for all browser then why do I need cross-browser functional testing. For example, ...
0
votes
4answers
88 views

Recommendations on adoption of protractor over selenium for angular app

We currently have automation framework using selenium Webdriver C# bindings .The application under test is being re-written in angular.The QA team is familiar with C# and selenium , so we are ...
0
votes
1answer
34 views

Driver is not executable error in Jenkins but its running in Local Machine (MacBook)

I am working on MacBook. Our Jenkins server is running in linux server when I running tests via testing.xml file all test classes are running but when I run Jenkins build its not getting run Error is ...
0
votes
1answer
27 views

Selenium Page Objects have Individual Method for Every DataQa?

Our QA Automation Test project uses Selenium with data-qa attributes. Our company is proposing having Individual Methods for each By attribute: eg for SendKeys, Clear() I believe this may lead to ...
1
vote
1answer
41 views

Do Top Companies Write Automation Tags for Selenium? [closed]

Does Anyone know if Google, Facebook, Amazon, and other top FAANG companies use automation tags in their web projects? We have literally hundreds of Pages, Buttons, Textboxes, and its very tedious to ...
0
votes
0answers
19 views

How to click all link text in web using selenium_Python

I'm newbie in python.Now i'm try to create automatic workflow for download all account bank-statements using selenium-python.I have 4 accounts. Like this: This's my sample code: from selenium import ...
14
votes
6answers
4k views

Why are Selenium tests so unstable?

I am running a few scripts (in my personal and business laptop) and every day I get a different error at a different step. Sometimes I run and it is passed, but I run again and get an error that an ...
1
vote
1answer
49 views

Selenium test coverage visualization

We have a huge legacy application where unit/integration tests are impractical and most automation is done in Selenium with Java programming language in a separate automation project. There are about ...
0
votes
1answer
23 views

Unable to perform the vertical scroll up to the web element

I want to click on a web-element and perform some action. For that, the element needs to be visible. I have written the below code: WebElement element = driver.findElement(By.xpath("//div//span[@...
2
votes
1answer
255 views

Using 'final' variables in Java Selenium tests

This might be considered a programming question, but it is concerning test code, written in Selenium plus Java, so I think this is the relevant site to post this. When viewing other people's tests ...
0
votes
1answer
29 views

Not printing lowest price value using selenium

Not printing lowest price value using selenium webdriver and java language on Makemytrip application here I am able to print the all prices, but problem in number format. //print lowest price List&...
0
votes
1answer
64 views

Selenium + Java: How to automate custom file upload/attach field?

I'm trying to automate a custom file upload field with SELENIUM and JAVA on UBUNTU. Let's take Yahoo mail as an example. The flow to automate would be to compose an email, attach a file to it and then ...
0
votes
1answer
27 views

Getting an error while trying to run a script using Rest-Assured library

Getting an error while trying to run a script using Rest-Assured library along with Selenium. Anyone has encountered this kind of error while scripting with Rest-Assured. My code is scattered across ...
0
votes
1answer
43 views

Python How to find a key in a nested dict [closed]

I am currently automating an application that is available across multiple platforms. We have a common JSON file per page denoting the elements locator as below: { "XYZ": { "default&...
-1
votes
1answer
34 views

Understand How to Click on an a Table Element (URL) Based on a Value in that Same Row Using Selenium

I am automating steps in a browser using Selenium/Python; however, I am stuck with trying to understand how to get Selenium to recognize a text value in a table and click on the URL in the ...
0
votes
1answer
45 views

org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 13; Element type “parameters” must be declared

Here is the xml file and not sure what is missing here . Any suggestions here? <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="TestSuite" ...
0
votes
0answers
177 views

Maven is not running any tests called using testng suitexml files in POM.xml

I am trying to run a test using Maven by providing the testng.xml file. It is not running any test, although the build is successful. POM.xml <project xmlns="http://maven.apache.org/POM/4.0.0&...
0
votes
1answer
28 views

How to select/click respective row within a table? There are a few tables on the page [closed]

there are a few tables on the page. In one of them I need to select respective company code and then proceed. I have a problem with the following code. I don't know what approach should I use and if I ...
1
vote
1answer
595 views

How do I enable ChromeDriver to use browser cache or local storage with selenium python

I was trying to automate a website and it's a PWA. I need the caching data for this site as it takes too long to load, once loaded it's pretty fast. But every time I run my scripts chrome starts a new ...

1
2 3 4 5
93