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
1answer
12 views

Difference between Selenium getText() method and innerText property of an element

I am trying to get the text of an element using Selenium getText() method and using innerText property of an element and compare the output. HTML code: <div> <h1> DEF <p> Demo ...
0
votes
0answers
24 views

After using BrowserMob proxy to manipulate HTTP Header unable to access WebElements

Below code works fine in launching the browser using the header request value passed through BrowserMob. However after the login has been completed using the requestvalue passed. I am unable to run ...
-2
votes
0answers
20 views

Im Using a Page Object Model im trying to create stock , now im facing with Null Pointer Exception, [closed]

FAILED: AddStockTest({StockPrice=340000.0, PortfolioName=My 2020 Stocks, Quantity =123989.0, Comment=, StockName=Bosch Ltd}) java.lang.NullPointerException at baseClasses.PageBaseClass.openApplication(...
1
vote
0answers
35 views

Integration testing of web application with asynchronous “jobs”

A web application I'm developing essentially serves to queue up jobs which are processed on another server. Depending on the load, that could be anywhere from 5 minutes to 2 hours later before the ...
1
vote
0answers
14 views

selenium initial connect timeout

How do I tell selenium webdriver to retry/timeout when I start a session? I'm spinning up a remote standalone java server (aka hub) as a process I'm immediately going webdriver.Remote() and that ...
0
votes
0answers
13 views

How to select a drop-down menu value with Selenium using Python? [duplicate]

I need to select an element from a drop-down menu. <div class="selectric"> <select> <option value="10">View 10</option> <option value=...
-1
votes
0answers
17 views

PageFactory.initElements give a null to webe elements in selenium

I am designing this framework to automate a web application using selenium and java. I have implemented bass class, object class and test class separately. even though I initialized the page factory ...
0
votes
1answer
32 views

After applying the color to the button element, the color property of an element returns null

I am trying to get the color property of the button element using Javascript inside Selenium, before and after clicking the button. HTML code: <html> <head> <meta charset=&...
0
votes
1answer
13 views

View webdriver tests running on EC2

I have my selenium webdriver tests on EC2. Chrome --headless flag is on and job is started from Jenkins. Is there a way to watch the live UI tests on the browser window via a VNC connection from my ...
0
votes
1answer
10 views

How to read a CellType of a Cell in apache poi while reading a Excel file? [closed]

I am reading my test data excel file using apache poi. the problem is that i want to get the "CellType" of a cell and if its a String , then call getStringCellValue() and if its numeric then ...
-1
votes
0answers
23 views

Need open source project recommendations for contributing to Web UI Tests with Selenium WebDriver in Java [closed]

I have been using and learning Selenium WebDriver (Java) for more than a year. I've created my own project which utilizes POM, TestNG and ExtentReports. I am looking for open source projects where I ...
0
votes
1answer
53 views

WebDriverIO executing too fast

I think this is weird, as I have been researching and most of the questions related to WebDriver execution time are about it running slow. However, the problem is that the page which I'm testing is ...
1
vote
1answer
52 views

Selenium getAttribute(“background-color”) and getAttribute(“color”) returns null

I am trying to get the background color of the body element and the text color of the button element after clicking on the button. HTML code: <html> <head> <style> #container { ...
0
votes
2answers
48 views

Cant close the selenium web driver when its on a exception C#

As on my code I'm trying to find an element and click on it. If the element is not available then there will be an exception. So inside the exception I'm trying to close the web driver. But as on the ...
0
votes
1answer
69 views

Shows “[Utils] [ERROR] [Error] java.lang.NullPointerException” for data driven(excel File) API Automation test(Rest Assured)

It throws a java.lang.NullPointerException, but why it shows that, I could not find. Here is my code. ExcelUtil package Utils; import java.io.FileInputStream; import java.io.FileNotFoundException; ...
0
votes
3answers
48 views

How to Verify Previous Month Arrow should not present in Current Month in GoIbibo Site

I am unable to Verify Previous Month arrow should not be present in DatePicker but as it is not present in DOM getting Exception unable to find Such Exception. void fillDepartureDate() { // Date ...
-1
votes
0answers
30 views

Not able to put the downloaded file in Random create folder. Selenuim Version 3.141.59

I've made a SSCCE to show the issue. I create a new folder in setup() and tell Chrome to use this folder as my default downloads folder. However, when I actually download the file later, I find the ...
1
vote
1answer
26 views

Selenium throws MoveTargetOutOfBoundsException while using negative value in the moveByOffset method of Actions class

I am trying to scroll inside an element using the moveByOffset method of Actions class: HTML code: <html> <head> <meta charset="utf-8"> <style> #container { ...
1
vote
1answer
44 views

Can't locate element [duplicate]

I am trying to click on the link shown on the attachment but, no matter what I try, webdriver can't find the element. I tried these: elem = driver.find_element_by_xpath("/html/body/div[1]/div/div/...
1
vote
1answer
27 views

Fetching wrong Employee count corresponding to office location in Selenium

I am fetching Employee count according to locating using Map Highlighted No of employees count is mismatch in Image like If i search in Web table Tokyo there count is 5 but here getting 6 for ...
0
votes
1answer
57 views

how to read the following data from excel using cucumber-java

Heading How to get the username and password from excel using cucumber package com.qa.excel; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import org.apache.poi.ss....
0
votes
1answer
16 views

aspectjweaver must be a valid version in POM.xml [closed]

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
32 views

Assert that options (text) in drop down are unique

I’m creating test in cypress using typescript, I’m not sure how to assert that all options in drop down are unique - I found bug where is situation that values are duplicated multiple times - it’s a ...
-1
votes
0answers
35 views

What is the reason of test method getting skipped?

I am trying to execute a test method multiple times in parallel against test data read using @Dataprovider. For example: There are 3 sheets in my .xls file and I am executing the same test in parallel ...
0
votes
0answers
15 views

Do we need to run WinAppDriver server explicitly on the remote server where Jenkins will run my automation?

As i am very new and doing POC for my project, I am wondering how can i make sure that WinAppDriver server should run before my Automation test in remote server using Jenkins. Or is it not required to ...
0
votes
1answer
17 views

Scrolling an element into view with iOS native app

I am using Appium + Selenium + Java. I am testing a native app and I sometimes need to scroll an element into view in order to click on it. It seems like, when testing a web app on iOS, you can use ...
0
votes
0answers
23 views

Iframe not visible while running tests through Docker (Ubuntu Base Image)

I am having issues with IFrame element not visible on Chrome running on headless mode while running tests through Docker Containers based of the Ubuntu OS. Exact same test code is running fine on the ...
0
votes
0answers
39 views

How to fix invalid session id when creating AWS Remote Driver on Desktop browser testing

I am a newbie in AWS device farm. I am trying to execute automation test on Desktop browser testing project. I have done aws configure to create credentials and write code as below but got error. ...
-1
votes
1answer
27 views

Function with the While/Try/Except construction intended to close pop-ups fails

The following piece of Python Selenium code do not work and I would be grateful for helping me to understand why. It is designed to close pop-ups that block access to the account button. The number of ...
0
votes
1answer
45 views

Need to remove some items from a IList Selenium C#

When I execute below command I'm getting more than 3000 items to my elm variable. Then I have to pass them in to a string array. The below list contain so many blank data and there are some items ...
0
votes
1answer
19 views

Run series of tests using one browser instance - Selenium web-driver c# i

I developed a series of unit tests in Visual Studio 2019, C# Selenium. How can run back to back with one browser instance? For example, the first test is going through a series of steps and creates a ...
0
votes
1answer
25 views

Not able to select option from div type listbox in selenium C#

Here the id=popupY8cuUiMiDU is dynamic.I need to get the Y value from span but there are multiple listbox with the same span attribute taking Y option. How can I select from listbox as there is no ...
-1
votes
1answer
37 views

TestNG - java.lang.NullPointerException [duplicate]

My code: package test; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng....
1
vote
1answer
43 views

Discriminating between two identical elements when they are both “displayed” and “enabled” but only one is actually visible

I am currently automating tests for a native app and I have some issues with "ghosts" elements. By "ghosts elements" I mean elements that are in the code and technically on the ...
0
votes
1answer
43 views

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot focus element

I am new automation and I am using selenium with python and got stuck. I am trying to upload the document using sendkeys in selenium but getting this error. Error -selenium.common.exceptions....
1
vote
1answer
51 views

XVFB and Selenium on EC2 - Unable to view Chrome UI on VNC Viewer

My Selenium headless tests are triggered from Jenkins server and run in EC2-Ubuntu. I want to view the test live on Chrome so I installed Xvfb plugin on Jenkins. On EC2 I installed Xvfb. When I start ...
0
votes
1answer
60 views

Null Pointer Exception Error at Selenium TestNG

I'm trying to automate the search box but I'm getting null pointer exception. package LICT.Maven_ReCheck_Search; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import ...
2
votes
1answer
50 views

Solution for the parallel execution of tests that verify email

I have a test that reads Auth Code from mailbox and uses it to log in. I use Gmail API for that. I would like to have several such tests that will run in parallel. However, I don't know, how to ...
-4
votes
1answer
36 views

Selenium with React dropdown

I am bit stuck on how to automate a dropdown without select tags and select desired values by text/name HTML Code is below <div tabindex="0" direction="ltqr" class="reacst-...
0
votes
1answer
45 views

My problem with selenium xpath

def getFollowers(self): self.browser.get(f"https://www.instagram.com/{self.username}") time.sleep(2) // I have a problem with the XPath in this line self.browser....
0
votes
0answers
15 views

Qmetry - How do I create a radio function using Qmetry Documentation?

I succeed to automate this radio button (HTML): <input type="radio" name="CurrencyCode" id="CurrencyCode_USD" value="02" onclick="...
0
votes
1answer
52 views

Selenium C# Locate Both Data QA Attribute And CSS Class

How do we locate both Data QA Id and CSS Class using Selenium C# ? We're trying to locate both a DataQAid attribute and also see if its class ng-invalid, (Angular Material Textbox Error) This is what ...
-1
votes
1answer
44 views

How or which tool can be used for automating Cognos dashboard testing?

I am a tester and my company is using IBM cognos for creating dashbaords. These dashboards have many graphs and charts which can be customized by the user as per their need. Dashboards are built using ...
1
vote
0answers
31 views

Is each Scenario in Cucumber BDD framework considered a separate .Java Class by JVM?

When I write Cucumber scenario's like:- User.java Feature File Scenario: Add a new user profile Given User is on the Add user profile page When user enters profile information and clicks ...
0
votes
0answers
33 views

How to execute test cases after ide crashed

Kindly suggest if I have 100 test cases after executing 40 Test Cases my IDE was crashed. So, on the next time when I am restarting my Test Cases again the execution should be start from 41 to 100. I ...
0
votes
0answers
9 views

Executing cucumber feature file in eclipse

I have installed cucumber plugin on eclipse 2019-09 but the console doesn't show anything after I run the feature file. I have created Maven project in eclipse and created one package for testrunner ...
1
vote
4answers
52 views

Creating selenium scripts from requirements

Is it possible to create selenium webdriver scripts just looking at test cases, use cases or requirements. I always wonder how the scripts could be created in advance when the functionality has not ...
2
votes
0answers
43 views

How to avoid using same data in parallel execution

This question is similar to How to manage application data when running multiple tests in parallel? But I want to know if there's a way or listener in testNG that will lock certain method when running ...
1
vote
1answer
78 views

Getting error - …either make it static or add a no-args constructor to your class

I am writing test scripts with Rest-Assured java. I have two classes ApiMethods and AppMethods belonging to one package and another test package called apiTests using the methods created in the ...
1
vote
4answers
112 views

How to initialise the PageObject Class using PageFactory only ONCE in a Step Definition Class in a Selenium Webdriver + Cucumber project?

I am making a Regression suite Automation project using Selenium Webdriver, Java, Cucumber, Maven etc. Now, the problem is that I have multiple Page Object classes that I initialise again and again ...

1
2 3 4 5
92