Questions tagged [selenium-webdriver]

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

438 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
2answers
76 views

Strange drop down automation problem - multiple select

I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
1
vote
3answers
3k views

Unable to find element with xpath within nested framesets

I'm using driver.findElement(By.xpath("//a[@title='A K T İ V A S Y O N']")); to locate the element given below in the screenshots but getting Unable to find element error. There are nested classes ...
1
vote
0answers
214 views

Using FindBy in abstract class

I have couple of pages that have similar structure, similar elements. But selectors are different from the first tag. Example: Selector for the element on one page: @FindBy(xpath = "//picture-item//...
1
vote
1answer
6k views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
1
vote
1answer
415 views

How to add row elements in selenium?

I want to add today's count. I am new to selenium, and am not getting how to add using selenium. Can anyone suggest a solution? This is my code: package testpk; import org.openqa.selenium.By; ...
1
vote
0answers
211 views

How to launch 10 browser instances using Selenium Grid in the same machine

I'm trying to launch 10 browser instances (IE) in a virtual machine and execute same script 10 times parallelly on those browsers. I updated the IE node to have maxInstances=10" -maxSession 10 and ...
1
vote
0answers
23 views

How to print the webservice(jqurey) hit on the console for search functionality

Open a website, press F12 go to network option and enable preserve log now type the work you want to search eg:dogs we can see the service "http://search.test.com/search........." here i want the ...
1
vote
2answers
819 views

Click getting to lower item (under dropdown) instead of dropdown in Selenium

I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it. Before the ...
1
vote
0answers
69 views

Changed Selenium Framework

I am using this Selenium Set-Up in an older Project. (later called "Old-Project") Now I want to migrate this test to a Project with this Set-Up: (later called "New-Project) I am using a code sample ...
1
vote
1answer
2k views

unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service

We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; ...
1
vote
0answers
180 views

Running selenium tests parallel on different website using grid

We want to setup a Selenium Docker Hub Node Environment.I have successfully set it up using following: docker run -d -p 4444:4444 --net inpronet --name selenium-hub selenium/hub:3.11.0-dysprosium ...
1
vote
0answers
600 views

Attach Existing browser session in SeleniumLibrary RobotFramework

I have an LDAP alert box that pops up as soon as the browser is opened. I am Using Robotframework with the seleniumlibrary for my automation scripts.The issue is that the execution of the script ...
1
vote
0answers
49 views

Facing Timeout issue while earlier this code was working

import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Test1 { ...
1
vote
0answers
114 views

Simultaneous start of multiple 'test suites' (all clones) in Selenium IDE, on as many browsers?

Scenario: Multiple Firefox browsers with Selenium IDE addon installed, residing in as many VMs in the Host, all containing the same Source i.e. the exact same commands in their respective S-IDE window....
1
vote
3answers
2k views

Python Selenium unable to login by clicking on Button inside a form

website:https://www.etoro.com/login <button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button> I am trying ...
1
vote
0answers
40 views

Code Coverage using Scala Automation Testing for JS web application

I'm looking if there's an existing application or tool that will run code coverage based on a scala implemented automation suite running against a Javascript web application. Our automation framework ...
1
vote
0answers
121 views

Unable to call custom annotation in selenium test

Unable to call custom annotation in selenium test i am writing a Apache poi selenium junit test - To avoid @RunWith i have tried myown annotation public class MyTest extends OtherTest { String a ;...
1
vote
2answers
1k views

To work with two different drop downs which are dependent on each other

I have a scenario in which i am finding bit difficult to automate . The test scenario is : There are two drop down . 1.To select the state. 2.To select the respective cities. So i need to write a ...
1
vote
1answer
848 views

Selenium Python - Unable to find an element, get stale element exception when using element locator

Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation ...
1
vote
0answers
490 views

Exception in thread “main” org.openqa.selenium.WebDriverException: Value cannot be null. Help needed

When trying to invoke winium driver for my file upload from local into web, it's showing below error, Exception in thread "main" org.openqa.selenium.WebDriverException: Value cannot be null. Further ...
1
vote
3answers
6k views

Python Selenium Find Button

I have a Website were I want to click a button, but I can't find in the button in the HTML script, what I have to write in my Python script? Later I want to have something like driver....
1
vote
0answers
123 views

How to get actual element position from webpage during css transition in python?

I am trying to speed up a test by not waiting for a css transition to happen, but rather have a WebDriverWait handle the task for me. Currently it looks to me that lambda elem: elem.location["x"] ...
1
vote
1answer
151 views

How can I solve OutOfRangeException on using Selenium C#

I was faced with the below problem while trying to run a data driving testing and have tried to resolve it but nothing seem to be working for me. Please could you take a look at my code and tell me ...
1
vote
5answers
9k views

Unable to click button using Selenium Webdriver Java

I am trying to click a button through webdriver. After inspecting the button element it highlights to the following: XPath: /html/body/div/div/main/div/div[2]/div/div[2]/table/tbody/tr/td[4]/form/...
1
vote
0answers
39 views

What software testing tools can be used to test the media content like Video content loading in the web page

What software testing tools can be used to test the media content like Video content loading in the web page. Mainly for an e-learning content like of Udemy's. Video-playback and loading needs to ...
1
vote
0answers
906 views

How to handle password alert pop up (Windows Security) on IE?

The pop up is not the traditional alert. It looks like this pop up. Basically Windows Authentication system. I have tried the classical alert handling technique (alert.sendKeys()) and the one using ...
1
vote
2answers
5k views

How to upload an image selenium webdriver with javascript?

driver.wait(until.elementLocated(webdriver.By.css('div.border-right:nth-child(2)')), 1000) .then((element) => { element.click(); }); I am using java-script for my test cases. I had an issue to ...
1
vote
0answers
96 views

Runners for cucumber tests

I've reached the point now where we need to get my automated checks running as part of deployment scripts to act as regression tests. I've not done this before and I'm thinking the way I currently ...
1
vote
3answers
2k views

How to handle tooltip on onmouseover in selenium java

test case is to show the tooltip message my html code is below <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]);" onmouseout="closePopup();" ...
1
vote
0answers
532 views

how to interact the video in java selenium

I have a test case with video. Test Case scenario: There I want to check whether the link in the website and when we clicked that link played video link are same. [![Highlighted is linked to video][...
1
vote
0answers
227 views

how to recover stepName and exception from selenium results in order to fill Log(LogStatus, StepName, Exception); ExtentReports Selenium with C#

how to recover stepName and exception from selenium results in order to fill Log(LogStatus, StepName, Exception) with C# I'm working with ExtentReports 2.41.0, and I use Selenium tool.
1
vote
0answers
609 views

Unable to Switch to iframe in IE

Code Trails: driver.switchTo().defaultContent(); List<WebElement> before = driver.findElements(By.tagName("iframe")); for (WebElement t : before) { System.out.println("iframe" + t....
1
vote
3answers
3k views

How to automate KendoUI dropdown with selenium webdriver and C#

Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#. Sendkeys doesn't work for KendoUI. Here is my HTML: <div style="background-color: #e6e6e6;...
1
vote
1answer
36 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(...
1
vote
1answer
586 views

How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now. On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even ...
1
vote
4answers
2k views

Python selenium grid parallel execution

How do I run parallel selenium scraper in grid? I wanted to crawl 10 urls , and if I start two Firefox nodes, how do I request the nodes to crawl 5 urls in parallel? I have gone through google, but ...
1
vote
0answers
2k views

How do I run my C# Unit Test Cases using Jenkins?

I have prepared few Unit Test cases using Selenium-C# and MS Unit Test framework for a web application. I am using Selenium WebDriver for automation. My tests run perfectly fine when I run them ...
1
vote
0answers
873 views

Fixing mojom error after Chrome update

I wish there was some way to intercept new Chrome(driver) errors in SeleniumWebdriver before they hit my tests. The latest I have found is this one. Does anyone have a fix? DevTools listening on ws:/...
1
vote
0answers
359 views

“NoSuchElementException” while executing Selenium script with TestNG

I'm trying to search a few records on a website. The input data is in an excel sheet and I need to write the search result into another excel sheet. And while executing the script, the screen hangs at ...
1
vote
0answers
705 views

How to disable file upload dialog with selenium python?

I'm trying to drag&drop a image to: <input class="aaa" multiple="" name="bbb" style="display:none;" type="file"> with: path=os.getcwd()+r'\\' WebDriverWait(driver, 10).until(EC....
1
vote
0answers
407 views

Unable to locate element inside Ajax Table using selenium webdriver

I was trying to write a C# & Selenium automation code to visit a webpage and click some elements to arrive at another webpage. So in the process, I am supposed to click a checkbox which is ...
1
vote
0answers
86 views

Automated Testing Parallely across browsers (Selenium + Mocha )

I need to write automated tests for jQuery based plugins using Selenium WebDriver and Mocha. I have 3 questions. 1.mocha test command is used to start the test. If I need to do the tests parallelly ...
1
vote
0answers
1k views

Casting jQuery.active from the executeJavaScript method

Working in an inherited automation codebase. There is a method which waits to see if jQuery has been initialized. .until(new Function<WebDriver, Boolean>() { @Override ...
1
vote
1answer
95 views

(Ruby) How can I invoke multiples Selenium Webdriver just in one browser POM

I'm a newbie on ruby language... Currently, I am using POM (page objects model) with Selenium webdriver. This is my trouble: As I'm using selenium with POM, I have 3 classes (register.br, login.br ...
1
vote
0answers
998 views

Automated build throws an exception - Click times out after 60 seconds

My selenium test in C# works fine locally, but fails when it is run by the automated build. This is the error: 2017-09-13T00:33:05.1795606Z [error]OpenQA.Selenium.WebDriverException: The HTTP ...
1
vote
2answers
90 views

Cannot locate elements on this page. Firebug comes empty with status as loading. How to automate it ? (I wish to click OK)

I want to automate this page and click Ok Button, but the page is not displaying in HTML in Firebug and status is coming as "Waiting for ..." In such cases how to automate the click without elements ?...
1
vote
0answers
464 views

How to extend Selenium2Library by creating new RobotFramework keywords using Selenium WebDriver in Java?

I'm trying to extend the Selenium2Library python library (1.8.0) by implementing new Robot Framework keywords using Selenium WebDriver in Java. In order to do that, I need to be able to retrieve the ...
1
vote
0answers
2k views

Compare images on HTML5 canvas using Selenium WebDriver in Java

I'm a beginner in Test Automation and I'm working on a web application like MS Paint and I'm facing a problem. Here is the test scenario: I will drag an element from the toolbar on the HTML5 canvas ...
1
vote
0answers
365 views

How to handle browser language notification in android using appium?

I was trying to automate a website which is in german. But when I run the test on android device using chrome browser, language translator notification appears. Can anyone let me know how to handle ...
1
vote
0answers
341 views

When exporting from Selenium IDE to Webdriver, some commands are not getting exported. Its coming as “Unknown Command”

driver.findElement(By.linkText("Add User")).click(); // ERROR: Caught exception [unknown command [readCSV]] // ERROR: Caught exception [unknown command [while]] // ERROR: Caught exception [unknown ...

1 2
3
4 5
9