Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
559
questions with no upvoted or accepted answers
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 ...
1
vote
3
answers
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 ...
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 ...
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]...
1
vote
0
answers
648
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
0
answers
242
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
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 ...
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....
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;...
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 ...
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):
...
1
vote
2
answers
701
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
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 ...
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:/...
1
vote
0
answers
403
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
0
answers
830
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
0
answers
462
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
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 ...
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
...
1
vote
1
answer
164
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
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 ...
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 ?...
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 ...
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 ...
1
vote
0
answers
438
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
0
answers
411
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
vote
0
answers
122
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 ...
1
vote
0
answers
681
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 ...
1
vote
0
answers
208
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'...
1
vote
0
answers
555
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
...
1
vote
0
answers
3k
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;
...
1
vote
1
answer
629
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 ...
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....
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&...
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" ...
1
vote
0
answers
143
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 ...
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 ?...
1
vote
0
answers
667
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 ...
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)
{
...
1
vote
0
answers
144
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" ...
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 ...
1
vote
0
answers
2k
views
java.awt.Robot does not work for handling "File Upload" dialog window when executed via Jenkins job
Robot class does not work when the selenium suite is executed via a Jenkins job. The same suite however works successfully when executed on local machine.
Need answers for following:
Is there any ...
1
vote
6
answers
3k
views
Mandatory fields in selenium webdriver not changing the color of the dropdown from red to blue once value is selected?
I am new to Selenium Webdriver , I have an application build in angular 2 and trying to select values in drop down which are mandatory.
1) Select a value from a dropdown; initially the dropdown is ...
1
vote
0
answers
593
views
Downloading PDF files using PDF Box
I have a page with 3 links, all PDF files. They all refer to the same directory but to different files in that directory, all of which are pdf files (ending in .pdf). Manually clicking on any of ...