Selenium-WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.
0
votes
1answer
18 views
How to click CSS with a space using Selenium Webdriver
I am trying to click the CSS below
html body.FormBackground form#LookupForm div#Panel1 table tbody tr td div#GridContainerDiv div table#DataGrid tbody tr.GridSelectedRow td.GridRow
So far I have ...
0
votes
2answers
30 views
Getting value of the element
I need to get the value of data-id in the HTML code below.
My attempted code is:
//p[contains(.,'Smart card')]/following-sibling::button[@data-id='633597015500043521']"));
My HTML code shown below:...
0
votes
3answers
17 views
How to use Fluent wait for Listbox WebElement
I am new to selenium webdriver. Can anybody help me to use the fluentwait in my script?
Here is my HTML code:
<ul id="ui-id-6" class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" ...
0
votes
2answers
11 views
Exception in thread “main” org.openqa.selenium.remote.UnreachableBrowserException:Could not start a new session
I just started to learn Selenium WebDriver. Could you all help me to resolve below problem.
I simply want to open the web-site(I am able to open browser successfully but navigation got failed )
...
1
vote
0answers
8 views
Maven Surefire plugin did not rerun failed Cucumber tests
Maven Surefire plugin did not rerun failed Cucumber tests
I am using the Java implementation of Selenium WebDriver (version 2.53.0) to run some automated tests against a web application. The tests ...
0
votes
1answer
2k views
Selenium Web Driver - How to run Firefox in the Background
Every time I run my tests on Firefox browser the browser takes active control and kind of disturbs/interrupts my work. Is there way/command to make it run on the background.
0
votes
3answers
5k views
Updating excel file using Apache POI
I am trying to update an existing excel file using Apache POI. Every time I run my code I receive an error as shown below. I have also tried FileInputStreamNewFile thing.
Exception in thread "main" ...
0
votes
1answer
15 views
How to avoid unwanted pop up window using selenium webdriver?
When i try to open any page, In the middle or when the page is loading if any unwanted pop up window comes how can we avoid that pop up window and work further to load the page.
-4
votes
0answers
15 views
How to rerun the code when browser crashes in between automation using Selenium Webdriver?
While automating some websites using selenium webdriver, I did experience the browser crash in between. The error in stack is seen sometimes as 'Null-pointer exception' and 'reference window cannot be ...
6
votes
5answers
6k views
Running Selenium Server & ChromeDriver as a Windows Service
So that we may perform front-to-back web UI testing, we are using Selenium and ChromeDriver to automate page loads / interaction as part of our testing pack.
This is behaving as expected during ...
0
votes
1answer
17 views
NullPointerException using WebDriverWait Boolean
I have two classes, one that runs the methods to click on buttons etc. On the page, there is a button that is disabled and I have a WebDriverWait to wait for it to be enabled again by checking that ...
0
votes
1answer
2k views
Selenium WebDriver sendKeys() not working wih oncopy, onpaste javascript event
Html code
<input type="text" class="input-txt" data-bind="value: Email,qtipValMessage:Email" id="txtEmail" maxlength="160" oncopy="return false" onpaste="return false" title="Please enter the ...
0
votes
1answer
17 views
“The type org.openqa.selenium.remote.http.HttpClient$Factory cannot be resolved.” error message in selenium script
I'm trying to build a testing framework for an android application using selenium webdriver on eclipse and Appium. I'm not using Maven. The initial script to launch the app is as follows:
package ...
0
votes
2answers
29 views
Element is not clickable at point Selenium webdriver
I have the following code and I cannot figure out how to click on an element without getting "Element is not clickable at point" error message.
You can also see that I am moving to the element ...
0
votes
0answers
16 views
Can we have custom test names in development code?
Developers has proposed a solution to add Test Name for all the elements in the Design Code and this test name can be used in automation to find elements, so that even when they change the design name ...
0
votes
0answers
21 views
how to make the selenium to wait till item is selected in the litbox
My script is getting failed to select the item from a list box, this problem i am facing when i execute the script first time, for next time there is no problem.In console the message printed like
...
0
votes
1answer
27 views
Selenium WebDriver 2.53.1 NoSuchElementException
I am using Selenium WebDriver 2.53.1 for Visual Studio 2015. I have a webelement I have called probably close to 1000 times and now I am getting a no element exception.
I have troubeshooted this ...
-1
votes
0answers
35 views
Selenium webdriver - wait condition failing when invoked 2nd time
I am working on selenium scripts using java and in one my methods I am using wait
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*//div[@class='someclass")));
this works ...
-1
votes
2answers
40 views
How to get text of element that is not inside html tag using Selenium webdriver
Below is the html and I want to get text "Conference USA"
<li class="list-unstyled" style="background-color: transparent;">
<input id="account" type="checkbox" checked="checked" value="...
14
votes
7answers
50k views
Cannot find firefox binary in PATH. Make sure firefox is installed
In Selenium Grid I am trying to execute a simple program and I'm getting Cannot find firefox binary in PATH though I have added the binary path in my code.
My code and the error are given below. ...
1
vote
1answer
55 views
Selenium in Python: Selecting an Option
I am having no luck selecting an option from a <select> using selenium. I have referenced http://sqa.stackexchange.com/questions/1355/what-is-the-correct-way-to-select-an-option-using-seleniums-...
0
votes
2answers
15 views
selenium webdriver select a radio button
I need to select the first radio button on the page and because i navigated to this page via click a link so I did a Webdriver wait. Please see attached picture showing the two radio buttons and code ...
0
votes
0answers
6 views
running webdriver/selenium on arch
I have a pine64 running raspbian, this is a arm 64 A53 processor running a longsleep version of debian.
here's uname -a output:
Linux pini 3.10.101-0-pine64-longsleep #39 SMP PREEMPT Sat May 7 12:39:...
-1
votes
2answers
27 views
How to deal with duplicate xpath in webdriver Java?
I am automating an app which is angularJS based. I have some check box which have same relative xpath and same CSSselector path. Absolute xpath is not working at all.
I had tried. How to handle this?
...
2
votes
1answer
12 views
run selenium with chrome driver on heroku: `cannot find Chrome binary`
I'm a noob as it comes to linux setup (and heroku), so apologies if this question is basic.
I want to run selenium webkit (in ruby) on Heroku. I face a difficulty that my script cannot find Chrome ...
-1
votes
1answer
38 views
Selenium: How can I navigate back to parent window
I am running below java code for switching windows and getting error message, Kindly suggest something.
Driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
Set<String>...
0
votes
1answer
32 views
Timed out after 30 seconds waiting for presence of element located by: By.id:
I tried to execute a testcase for login page in flipkart application on android device using appium.
I am getting inconsistent error as follows:
Timed out after 30 seconds waiting for presence ...
1
vote
2answers
33 views
selenium web driver unable to click next button due to element is not visible
I am trying to automate testing on the web form which has three pages and each page has a next button.
Here is HTML:
<div id="Section1Page" class="field fieldgroup bus-form-page nolabel" ...
0
votes
2answers
35 views
Selenium stale element exception (found when running tests and not while debugging)
I am getting stale element exception when I run the code. However while debugging I do not get this exception.
Here is my piece of code. Can anybody help me ? thanks
public static bool ...
-1
votes
1answer
27 views
Error: Either make it static or add a no-args constructor to your class
I am running this class as testNG and getting error either make it static or add a no-args constructor. If I add no arg constructor, I get error: "implicit super constructor BaseClass() is undefined." ...
0
votes
1answer
43 views
How to select items from drop down menu using Selenium?
I have been trying to automate a search using Selenium. I simply want to search terms (say Pink Floyd) but the file type should be pdf. Here is what I have done so far:
//Query term
...
-1
votes
0answers
27 views
not able to perform multi-threading in ruby
I am having a piece of code which read text and get xpath from browser, there are 100 of object where xpath should be retrieved, without using threads it takes very long and path is very slow in ...
1
vote
1answer
11 views
Difficult to run the script in selenium webdriver which contains HtmlUnitDriver
I am unable to run the basic selenium script which contains the HtmlUnitDriver. If I try to run the code I get the following error.
Code:
public class SampleUnitDriver
{
public static void ...
1
vote
0answers
25 views
Is there a way to utilize Java POM objects from a JavaScript Selenium test and vice versa?
Is it possible to utilize the pages from the Java POM codebase from the Javascript tests and vice versa - can the Java tests utilize the pages from the JavaScript POM in the completion of it's test?
...
4
votes
3answers
785 views
Selenium WaitDriver doesn't wait for element to be clickable
When I click on a button it displays me a form with another buttons and I want to click on one of them. Here is a video with this (really short one), please watch http://screencast.com/t/zyliSemW1s1
...
0
votes
0answers
5 views
BrowserMob proxy doesn't blacklist https resources
I am using proxy to exclude third party resources . But I have a problem with all resources which start with https . Could you please suggest any solution ?
For example I am trying to exclude static....
0
votes
1answer
163 views
Why won't Selenium WebDriver wait until time parameter work using JavaScript?
I'm using the example right from the README.md file here:
https://github.com/SeleniumHQ/selenium/tree/master/javascript/node/selenium-webdriver
var webdriver = require('selenium-webdriver'),
By = ...
8
votes
5answers
6k views
How to ignore or skip a test method using RSpec?
please guide how to disable one of the below test methods using RSpec. I am using Selenuim WebDriver + RSpec combinations to run tests.
require 'rspec'
require 'selenium-webdriver'
describe '...
0
votes
1answer
23 views
Invoking Selenium Webdriver Script from JSP Page
I am working on an experimental project, where I am trying to invoke Selenium Webdriver script from a JSP Page. So basically client will open a Web application on browser and click on 'Run' link ...
0
votes
0answers
39 views
Have to select Text from the lookup field after searching particular text like “200000882”. How can i achieve in selenium webdriver using python
I am new to UI automation. In a webpage, there is a lookup fields, where I have to enter text "200000882", based the the text I have to select full searched text "Environment Servicing Center (...
1
vote
1answer
10 views
browser.helperApps.neverAsk.saveToDisk preference isn't working with protractor for firefox
I am using firefox-profile with below settings -
var q = require('q');
var FirefoxProfile = require('firefox-profile');
var firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("...
1
vote
2answers
44 views
How to wait for the text of table row to change?
I have the HTML below:
<tbody>
<tr>
<td>
<span>
<span> I Will Change </span>
</span>
I am trying to figure out when the ...
1
vote
1answer
32 views
How to walk on Frames/IFrames and Subframes with Selenium
I'am doing an automated test with selenium and got some problems when walking on frames and iframes.
I have this setup
<iframe id="1">
<iframe id="2">
<frame id="3">
...
0
votes
1answer
23 views
Selenium Grid in C#
I'm trying to run my tests in another local machine, but i always end up failing! I've seen videos implementing successfully in JAVA, but I'm trying to do it through c#.
Any Ideas are most ...
0
votes
0answers
44 views
manually able to log in but with salenium webdriver its showing invalid credentials,how to handle this?
i am using Selenium webdriver with java to automate an angularJS based app. Manually i am able to log in to the application but in automation its showing invalid credentials. I checked with credential,...
0
votes
1answer
27 views
Selenium: How to make RemoteDriver always attached to the current browser tab?
I'm developing a windows app that can manipulate browsers with voice commands.
I want to properly handle cases when users adding some tabs and changing selected tab how they want.
Turns out ...
0
votes
2answers
33 views
How to type in text box in selenium?
I used sendKeys method, first time when I ran my script it worked but from second time it is not working. Script is finding the element but not entering in text box.
Please suggest if there is any ...
0
votes
1answer
34 views
How to get part of the href inside an anchor tag
I have the following HTML code that I am trying to get the URL from but I am not too sure how to retrieve it. The part of the href I am trying to get is www.boeing.com.au
Here's the HTML
<a class=...
0
votes
1answer
30 views
how do you chain UiSelector
I am having a hard time learning how to use the UiSelector class found in android.support.test.uiautomator. I have tried several times to chain the methods but can't find a way. The last thing I ...
0
votes
0answers
16 views
Finding the certificate thumbprint for a particular website on Chrome through Selenium WebDriver?
Let's say I open a particular website on Chrome through Selenium - www.google.com. I can view the certificate thumbprint for this website manually.
But is it possible to get hold of this thumbprint ...