Skip to main content

Questions tagged [selenium-webdriver]

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

568 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
143 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"] ...
DaniFoldi's user avatar
  • 121
1 vote
7 answers
11k 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/...
Harpreet Singh's user avatar
1 vote
0 answers
41 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 ...
Sasank's user avatar
  • 11
1 vote
0 answers
1k 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 ...
Gaurav Kumar's user avatar
1 vote
2 answers
6k views

How to inspect a element in a drop down menu in chrome and firefox?

The problem here is when we hover the mouse over the particular menu item, drop down items going to visible. When trying to click the inspect element the drop down items are not going to be visible. ...
Suresh Madhusanka's user avatar
1 vote
3 answers
7k 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 ...
Priyadharshini Hariharan's user avatar
1 vote
1 answer
2k views

How to launch Firefox Geckodriver with add-on enabled in selenium java?

I'm trying to use a custom profile in Firefox with an add-on, I can open the profile, launch URL, I even see the add-on icon on top bar but is always set into the disabled mode, I need to set it to ...
Prasad_Joshi's user avatar
1 vote
0 answers
100 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 ...
Matt's user avatar
  • 163
1 vote
3 answers
3k views

[Selenium + Java]: How to handle tooltip on onmouseover?

The test case is to check if the tooltip message shows. My html code is as: <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]...
Naveen's user avatar
  • 21
1 vote
0 answers
666 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][...
Aravin's user avatar
  • 131
1 vote
0 answers
244 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.
Mohamed Amine Merzouk's user avatar
1 vote
3 answers
3k views

Selenium IDE type not saving text

I am trying to create an automation tool to test a salesforce platform. When I try to create a new form, the text is displayed but it's really just an injection from Javascript. Is there any way to ...
Imran Chowdhry's user avatar
1 vote
0 answers
681 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....
Ray's user avatar
  • 11
1 vote
3 answers
4k 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;...
Sarah's user avatar
  • 11
1 vote
1 answer
5k views

How to save an webpage as a xml file using Python and Selenium?

I want to open an xml webpage and after opening the webpage, I want to save the xml content displayed in the webpage as file1.xml file. What I tried: from selenium import webdriver import os from ...
Dipankar Nalui's user avatar
1 vote
1 answer
1k views

Appium, clicks on buttons sometimes has a very long delay (on some views)

While testing by Appium (using Python), it clicks on some buttons with a very long delay on some views in my Android app. The method I am using: def click_element(self, element, time=wait_time): ...
kzet's user avatar
  • 11
1 vote
1 answer
741 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 ...
Steve's user avatar
  • 11
1 vote
0 answers
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 ...
seleniumTester's user avatar
1 vote
0 answers
1k 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:/...
SlightlyKosumi's user avatar
1 vote
0 answers
404 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 ...
Jee's user avatar
  • 11
1 vote
0 answers
862 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....
shshsh12's user avatar
1 vote
0 answers
470 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 ...
That-Kickass-GirL's user avatar
1 vote
0 answers
98 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 ...
vbrin27's user avatar
  • 153
1 vote
0 answers
2k 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 ...
MikeG's user avatar
  • 85
1 vote
1 answer
168 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 ...
Blackwidow's user avatar
1 vote
0 answers
1k 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 ...
Golnaz.r's user avatar
1 vote
2 answers
99 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 ?...
Ramkrishna Bhandare's user avatar
1 vote
0 answers
490 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 ...
Fred's user avatar
  • 201
1 vote
0 answers
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 ...
KhiladiBhaiyya's user avatar
1 vote
0 answers
447 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 ...
Mohammad Faisal khatri's user avatar
1 vote
0 answers
423 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 ...
Ramkrishna Bhandare's user avatar
1 vote
0 answers
129 views

Robot framework: how to point to libraries folder other than default?

I've set up a Maven project that uses Selenium (as a dependency) and would like to add Robot. The thing is, according to http://robotframework.org/MavenPlugin/: Third party libraries (e.g. Selenium ...
Floella's user avatar
  • 319
1 vote
0 answers
692 views

Is there a way to enter automate entering credentials in the IWA and SAML popup using only python and selenium

I am trying to create an automation script for a website that supports both IWA and SAML authentication. In case of IWA, whenever I hit the URL using the selenium driver, I get a Authentication ...
shobhit garg's user avatar
1 vote
0 answers
211 views

Cucumber/Selenium WebDriver Ruby not popping a browser during remote session (TeamViewer)

This is a bit of a mystery. I'm running a remote desktop session using TeamViewer in an OSx system (which behaves like an ordinary console in every way that I can detect). From the command line, I'...
J. Curtis's user avatar
1 vote
0 answers
557 views

Unable to run the Protractor tests in safari browser and build failed

My safari browser unable to locate the elements also and used so many delays: My Configurations are: iMAC Version: 10.11.6 OS X El Capitan Safari Version: 10.0.3 Protractor version: 5.1.1 ...
Jagannatha Mv's user avatar
1 vote
0 answers
4k views

How to compare image using AShot in selenium (Java)

I am using this code: package wayPoint; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.concurrent.TimeUnit; ...
NehaJadhav's user avatar
1 vote
1 answer
637 views

Exception generated after exporting code as runnable jar

D:\RhythmFileDownload>java -jar fileDownload.jar Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b port 36946 Only local connections are allowed. Apr 03, 2017 6:14:23 PM ...
Ramkrishna Bhandare's user avatar
1 vote
0 answers
75 views

Selendroid is alwasy looking for default emulator-5560'

Im runing some of my test on cross browser and when i try to do it on Android as on below code ,Some times it gives me an error saying Caused by: io.selendroid.standalone.exceptions....
ChathuD's user avatar
  • 2,147
1 vote
0 answers
3k views

java selenium check if modal popup present

I am having trouble dealing with modal popup windows in selenium (webdriver java). public void setScoring() { try { Set<String> popUp = driver.getWindowHandles(); Iterator&...
Standa Thor's user avatar
1 vote
0 answers
2k views

Specifying and running multiple goals in Maven

I have created a testing framework using Cucumber, Selenium and Maven. I am using the cucumber-jvm-parallel plugin to run my tests in parallel. Below is how my pom.xml looks: <?xml version="1.0" ...
BountyHunter's user avatar
1 vote
0 answers
144 views

While executing disabled datepicker script by javascript, getting error. How to resolve?

Error: Caused by: org.openqa.selenium.WebDriverException: document.getElementById(...) is null Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' Code: package ...
Bhushan Patil's user avatar
1 vote
0 answers
71 views

Are the TEXT locators different in android 6.0 and android 7.0 for Alert box?

I am facing an issue where TEXT property is in UPPERCASE in Android OS 7 while in OS 6 the same property is shown in Sentence Case for the same application. Can anyone suggest why this is happening ?...
Gaurav's user avatar
  • 327
1 vote
0 answers
669 views

How to Wait until page is fully loaded with Intern js

I was trying to automate the UI testing of an application with Intern js. But I am having a problem finding the way to wait until the page is fully loaded. After researching for a while, I found ...
CodeBlooded's user avatar
1 vote
0 answers
295 views

Passing IWeb element to Implicit wait function

I'm following Page Object Model on my test suite. I have below method to wait for an element. public void WaitTillCssSelector(string elemantName, int TimefromSeconds) { ...
ChathuD's user avatar
  • 2,147
1 vote
0 answers
154 views

Selenium : Facing Problem in retrieving data from Table where visible and hidden items share common tags

Helo All, I am facing issue in retrieving data from Table where visible and hidden items share common tags. Please guide me through .. <> HTML Code for Hidden items: <tr class="Bio Medical" ...
karunakar's user avatar
1 vote
0 answers
1k views

How to access an Input file in the shadow DOM using selenium chrome driver?

Has anyone figured out how to access an Input file in the shadow DOM using selenium chrome driver? at a certain point at the angular.js page a button is clicked and in the function triggered by the ...
Amorphis's user avatar
  • 186

1 2 3
4
5
12