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
votes
1answer
35 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
47 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
186 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
639 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 ...
0
votes
0answers
46 views

Unable to view the docker selenium script execution on VNC Viwer

I have a selenium script as below: public class firstclass { public static void main(String[] args) throws MalformedURLException { new DesiredCapabilities(); DesiredCapabilities cap = ...
1
vote
1answer
164 views

RobotFramework: Link/List with locator not found

I am studying Robot Framework with Selenium Library and I can't figure out how to remove "kw" element from the next dropdown: I tried to use xpath for it: *** Settings *** Library ...
0
votes
0answers
58 views

Selenium: How to switch to tab without focusing?

I'm using the Java Selenium and Chrome webdriver on Windows 10. I like to have a GUI up for debugging purposes, but my code keeps bringing the browser into focus. Specifically, lines like driver....
2
votes
1answer
111 views

Automating a comment delete on FB with Selenium

I am trying to automate deleting my old comments on posts I've made on FB. Im using Selenium with python to achieve this. I am currently having trouble dealing with pressing the hidden buttons (1 &...
0
votes
2answers
36 views

Can not click on the Menu under this video pop up

Whenever I want to click on the menu. The video pop up appears and this pop up we cannot close due to this I can not click the menu under this pop-up. IDE shows the following error. You can also see ...
0
votes
1answer
179 views

Using Socks5 proxy in Jmeter Web driver support proxy config

In Jmeter after adding chrome driver support there is a proxy tab where we can give proxy. I am selecting SOCKS Proxy and giving the IP address as we are using tunneling and then connecting to a ...
1
vote
1answer
58 views

Robotframework/Selenium/IEDriver - Tests fails at times with [object error] error message

I am using robotframework to perform web automation using IE11 and seleniumlibrary. It runs on windows 10 workstations. I use IE driver 3.14.0 32-bit as it allows to run scripts when screen is locked. ...
2
votes
1answer
187 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
51 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 ...
1
vote
0answers
40 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
26 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
16 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=...
0
votes
1answer
34 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
27 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
93 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
205 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
136 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
205 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
50 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
vote
1answer
73 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
51 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
35 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
284 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
31 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
37 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 ...
0
votes
0answers
58 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
73 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 ...
1
vote
0answers
34 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 ...
1
vote
0answers
91 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. ...
0
votes
1answer
42 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 ...
1
vote
1answer
119 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
36 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
39 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
79 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
45 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
156 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
92 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
174 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
56 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
123 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
66 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
21 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="...
1
vote
1answer
105 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
70 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
35 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 ...

1
2
3 4 5
93