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
0
votes
0answers
30 views

No tests found in the class [closed]

before I was running the test without any problem and today I wanted to do that again and unexpectedly I have an error in the console "No tests found in the class "testcases....
-2
votes
0answers
23 views

Python twitch login [closed]

Im trying to make a program that logs into twitch automatically using python and selenium but i cant figure out how to make it click the "login button" at https://www.twitch.tv/ any ...
0
votes
0answers
22 views

How can i click on a “SVG” dropdown element and select an option in Selenium? [closed]

How can i click on a "SVG" dropdown element and select an option in Selenium? the problem is that i cant see any child elements on the "svg" element, other than path. //*[@id=&...
0
votes
0answers
17 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
37 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&...
0
votes
1answer
23 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
12 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
33 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
23 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
60 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
37 views

unable to view the docker selenium script execution on VNC Viwer

I have a selenium script as follows. public class firstclass { public static void main(String[] args) throws MalformedURLException { new DesiredCapabilities(); DesiredCapabilities cap = ...
0
votes
1answer
33 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
25 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....
1
vote
0answers
31 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
26 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
30 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 ...
0
votes
1answer
47 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. ...
-1
votes
0answers
30 views

Which is the best tool for testing canvas?

I'm using selenium in java for testing angular web application. The application use extensively in canvas (the canvas presents maps with layers), which is really hard to test in selenium. I heard ...
1
vote
1answer
61 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
25 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
36 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
16 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
14 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
21 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
25 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
71 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
58 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
53 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
84 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
49 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
28 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
45 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
30 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
77 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
20 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
33 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
20 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
26 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
25 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
46 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
31 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
54 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
20 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
30 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
39 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
75 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
55 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
87 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 ...

1
2 3 4 5
93