Selenium-Webdriver provides an API to control and communicate with web browsers.
0
votes
0answers
14 views
Connection refused error when I try to close a Watir browser?
This thing just seems to give me problem after problem.
I posted another question earlier, trying to solve the problem of retaining my session state between closing and opening through Watir. Firefox ...
1
vote
0answers
22 views
selenium webdriver on virtual machine
I'm working on a virtual machine using Selenium WebDriver. I'm trying to run tests on the machine I work on (again, virtual) and I'm getting a NoClassDefFoundError on the line where I instantiate my ...
0
votes
0answers
17 views
getting exception while running selenium test in maven
I am using java,maven,selenium-webdriver.I have added dependencies 'selenium-server 2.32.0','selenium-java 2.32.0'.But I am getting Exception as follows:
Here is the code:-
public class ABC{
...
0
votes
2answers
33 views
Using selenium 2, how to type in textbox?
I am using Selenium 2.
But after running following code, i could not able to type in textbox.
package Actor;
import org.openqa.*;
import org.openqa.selenium.By;
import ...
0
votes
2answers
16 views
How to handle share location functionality of browser in selenium web driver
Now i am working in a project which contain google map or geo location API. When we click on map it show browser Share location pop up but using selenium web driver i am not able to click on it. And ...
0
votes
0answers
13 views
I capture the same web page as string for many times, but the screenshort strings are not always the same
Thanks for Take a screenshot with Selenium WebDriver
I wrote a selenium test case and wanted to compare a special page's old image and new image.
Firstly, I captured the page image as string and ...
0
votes
2answers
26 views
How to check that the options in dropdown are displayed twice in Selenium Webdriver using Java
I am stuck in one logic, where I have to verify if the options in dropdown are displaying twice. I searched in google for the solution, but didnt find any.
I have this code to get all the options ...
1
vote
0answers
13 views
Determining what requests happen after UI interaction with Rails, Capybara
I'm using Capybara for web crawling, and I have the following challenge: after I interact with some DOM elements (e.g. click a button), I want to know (or make a good guess) if a new page is loading ...
1
vote
1answer
49 views
Selenium: Can't SendKeys() to an item that was below the visible window but was made visible by Click()
I have this problem with a text field that is visible at the time of the SendKeys. I'm using IEDriverServer.exe and C#.
Here's how I can reproduce the problem:
The text field in question is visible ...
0
votes
0answers
18 views
Robot Framework - Run Firefox with system proxy
Ok so I got this code:
${SERVER} http://www.google.pt/
${BROWSER} firefox
${DELAY} 0
*** Keywords ***
Open Browser To Google
Open Browser ...
0
votes
2answers
27 views
how to clear browser cache automatically in selenium webdriver?
How to clear browser cache before every test run? I tried with driver.manage().deleteAllCookies(); in setUp method after creating the driver instance, it is working for firefox, but for IE no use. Is ...
-7
votes
1answer
34 views
How to delete cookies of IE, Chrome and FF browsers by using Selenium WebDriver (JAVA)?
I am using Selenium Web Driver, After successful completion of first test execution browsers are responding slowly and remaining tests are failing.
How to delete cookies of IE, Chrome and FF browsers ...
0
votes
3answers
67 views
How to select value from dropdown using java (selenium web driver)
I need to select a value from dropdown can some one help me on that. Html part is below
<div id="element11_chzn" class="chzn-container chzn-container-single" style="width: 320px;">
<a ...
-1
votes
2answers
32 views
Selenium object identification
I am using Selenium webdriver to test my application & i am facing difficulties in identifiying button on the same. the code snippet is like :
<input type="submit" onclick="return sign(this);" ...
1
vote
0answers
24 views
How to get the number of idle browsers for a node in selenium grid2
My current setup is 5 nodes with 10 Firefox browsers each, all connected to a hub.
I am running into a problem where I am exhausting the 10 firefox browsers for each node. So any new selenium runs ...
0
votes
1answer
33 views
Split class name
<section class="my-account-box-element box box-decoration-3 gutter-row-2">
<div class="box-inner">
<div class="box-content group">
<div ...
0
votes
0answers
31 views
Focusing between different drivers; Selenium
I have set up two different drivers, one for IE and one for Firefox.
How would I switch between focusing on the IE browser, and then the Firefox browser.
0
votes
0answers
27 views
How to solve synchronisation with webdriver
public boolean goToDemoPage() throws Exception{
//wait for browser to load
Wait<WebDriver> wait = new WebDriverWait(browser,Long.parseLong(System.getProperty("waitTime")));
...
0
votes
3answers
59 views
How to make returntype of the class dynamic
We're using PageObjects pattern for automation.
I've function,
public className SelectTab(driver,path,className)throws Exception{
driver.findelement(By.xpath("path")).click();
return ...
2
votes
1answer
27 views
possible to parameterise junit tests and run with maven?
I have a bunch of selenium webdriver tests split in different classes. I run these tests across a number of sites but I don't want to run them all on every site.
In the past I used msBuild and c# and ...
0
votes
3answers
38 views
How to make an assertion based on class name in web driver
The HTML is as follows:
<section class="my-account-box-element">
<span class="item icon-home icon-color-1"></span>
</section>
Need to make an assertion based on the ...
0
votes
2answers
40 views
Alert doesn't close using Selenium WebDriver with Google Chrome.
I have the following Selenium script for opening alert on rediff.com:
public class TestC {
public static void main(String[] args) throws InterruptedException, Exception {
...
0
votes
2answers
36 views
WebDriver Actions.Perform() or Actions.Build().Perform()
I use Selenium2 WebDriver with C#
Actions.Build - returns a composite IAction which can be used to perform the actions. (IActions has a Perform method to execute the actions)
Actions.Perform - ...
0
votes
0answers
82 views
Selenium : webdriver did not recognized the webelement
Can any one figure out this issue
I generated the script for login page, after login i wanted to log out the app or perform some action on that current page but i failed to do so. I performed by ...
0
votes
1answer
26 views
Toggle Native Events Capability of WebDriver at run time
Mouse Actions like Hover-over an element using 'Action Builder' does not seem to be reliable while running on Internet Explorer, when 'Native Events' is enabled. (Chrome and Firefox works perfectly)
...
0
votes
1answer
61 views
Retrieve 5th item's price value using selenium webdriver
Say I have multiple price quotes from multiple retailers, how will I retrieve the 5th value from a particular retailer - say Target or Walmart ? I can get to the 5th entry using the matching image ...
1
vote
2answers
71 views
Selenium Webdriver - How to deal with the html page Element/Count after delete
I have been trying to fix the problem i am facing, but i ran out of ideas so I need help here.
I have a very simple page:
╔════════════════════════════╦═══════════════════════════════════════╗
║ ...
0
votes
2answers
42 views
How to find attribute values using regular expression with Selenium WebDriver?
The HTML is as follows:
<div class="item link-color-1
automated link-track logout-link"
data-track-category="Logout"
data-track-action="Logout from /myaccount/mymoney/cashier"
...
0
votes
1answer
29 views
Junit, Selenium, and NoClassDefFound
I feel like a complete newb here. I recently switch to using a Mac for development and i'm running into problems with some of my projects. I feel like its a class pathing issue within the macs ...
0
votes
0answers
23 views
How to Press Tab for 2 consecutive fields through Web Driver
Hi I am new to Selenium . I am to press tab between multiple text fields after inserting
text in first text field how it can be done I getting stuck for a long time help me please.
Thanks in advance
...