WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Rather than running as a JavaScript application within the browser (with the limitations this brings, such as the "same origin" ...

learn more… | top users | synonyms

3
votes
4answers
1k views

How to locate or write Xpath for an element of an Hybrid app which has only class and no other attribute

I am new to mobile automation and Appium and unable to find a way to get xpath or locate an element, getting following node details in uiautomatorviewer: index:0 text: resourceid: class: ...
3
votes
4answers
215 views

Order in which options are returned by getOptions() in Dropdown box(Select Class) in Selenium WebDriver?

When we get options of a dropdown in Selenium Webdriver the following way Select dropdown = new Select(driver.findElement(By.id(dropDownId))); List<WebElement> options = ...
0
votes
4answers
65 views

Escape key for Safari using Selenium

I am using Selenium webdriver (Java) and ran into a problem. I made the method, public void escape() { Actions action = new Actions(driver); ...
0
votes
4answers
89 views

Can anyone help me out in getting the tooltip

I am unable to get the tool tip from a tag. The snippet of the HTML is <table class="tiger-stripe" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr ...
3
votes
3answers
128 views

Webdriver - Page Object Validator

For a while I wrote test for our web application using the Page Object framework. But test after test, I notice, I always wrote the same kind of assert. MyPage page = navigateToMyPage(); ...
0
votes
3answers
57 views

Unable to enter the text in a text box

I am trying to enter the text in a textbox, but I am getting an error as follows org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only Anybody can help ...
0
votes
3answers
155 views

Not able to switch on newly opened frame

Not able to switch on newly opened frame Below are the firebug details for my opened frame <html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden; height: 100%; border: medium none; ...
1
vote
2answers
41 views

What is the Purpose of the autoit tool in selenium?

Using selenium we can upload a file. So then what is the purpose of the autoit tool in selenium? driver.findElement(By.id("image")).click(); username.sendKeys("D:\Images\img.jpg"); The above code ...
1
vote
2answers
146 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
-1
votes
1answer
571 views

how to pick a date from a calendar?

I have to select a date from a calendar. There is a icon to activate the calendar. when I click on that icon calendar popup appears on the screen but I am not able to select the date from the ...
-1
votes
1answer
2k views

How to click on Canvas element?

How do I click on a Canvas element by using Selenium Web Driver and Java? I have searched Google but didn't find what I needed. A marker/pin is on the Google map and I have to click on the ...
-3
votes
1answer
131 views

I'm getting error while executing selenium programs

import java.io.IOException; import org.apache.bcel.generic.Select; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...