0
votes
1answer
73 views

Difficulty setting focus on element with Selenium WebDriver

I have a Selenium WebDriver test where I enter some text into a text input box var input_Note = Driver.Instance.FindElement(By.Id("note")); input_Note.SendKeys("test"); I then attempt to ...
0
votes
2answers
108 views

XPath not recognised in page object model in WebDriver [closed]

xpath not recognised in page object model in webdriver. @FindBy(xpath = "//td[contains (text(),'xxx')]") public WebElement topMenu; topMenu.click(); Error: Unable to locate element: ...
1
vote
3answers
169 views

How to write test cases in selenium webdriver using C#, simultaneously when web application is being developed (application pages not available)

I want to write test cases when application is under developing. I know the design of the application based on the wireframes. I intend to write test cases in C# using the Selenuim WebDriver. ...
1
vote
1answer
93 views

How to use Run Keyword IF" in Robot Framework

I want to run Keyword if Element is visible. E.g I want to check that if a button is visible on the page then run particular Keyword. Below is my code. Create button is Keyword and want to run if ...
2
votes
1answer
200 views

What are the Selenium, JUnit, Ant and JScover and how they are combined?

I am given a javascript function which takes as input some numbers and returns the max, as a part of a project at the university, and I have to test it, using Selenium, JUnit, Ant and JScover. I have ...
0
votes
1answer
69 views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know, that how we can take a series of screenshots / a video recording for a screen using Selenium 2 / Web Driver with JAVA ? Please provide the answer or the lick where I can get ...
1
vote
1answer
132 views

Fieldlevel validation in Selenium Webdriver (Java)

how to test validations for "FIRSTNAME" textfield. Below are the details and code. URL: http://www.vrlbus.in/vrl2013/register_customer.aspx Special chars: #!#!#$@#!$@!$@#$%#%^#$^^&%&$%* ...
1
vote
1answer
64 views

How to automate test the website inside some windows desktop app?

I have this question: I found there are web test automation tools such as selenium, but they are designed for testing website in the browsers such as ie/firefox/google chrome... What if the website ...
1
vote
1answer
271 views

How to compare values from the list or from dropdown list in webdriver (Java)?

Below is my code and html code, please let me know how to compare values. When i executed i am getting same result (Mateched) for multiple times. But i want to compare and display result as "Matched" ...
2
votes
1answer
55 views

Driving client interaction tests with Selenium

I have some experience with JMeter for performance and scale, but I'm very new to Selenium for browser based testing. At present I have some simple Selenium scripts recorded for Firefox. These are ...
0
votes
1answer
72 views

Is parameterized constructor (Java) supported in selenium webdriver?

I was asked in an interview whether Selenium Webdriver supported parameterized constructors. Example: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...
0
votes
0answers
75 views

ConnectionRefusedError: [WinError 10061] while running multiple selenium tests serially

I am trying to run a series of tests using selenium webdriver using a loop. Code snippet I am using. for var in range(2,worksheet.nrows+1): ...
0
votes
1answer
70 views

If we click on down load file it will ask for confirmation whether to open or save? how to handle this in selenium web driver using python

Am new to selenium web driver. I need to download the file, if we click on download, after downloading it it will ask confirmation to open or save file. It should save with out asking confirmation. ...
0
votes
1answer
390 views

JavascriptExecutor is not identifying the button to click in Webdriver

I have this HTML <div class="btnContr"> <input type="button" onclick="return cancel();" value="Cancel"/> Below is the xpath identified, using this xpath, I am not able to click on the ...
0
votes
3answers
229 views

Is it possible to integrate bugzilla with selenium web driver

Is it possible for us to integrate selenium web driver test with Bugzilla? My intention are as below: If we can integrate web driver with Bugzilla, can we automatically attach screen shot of ...
0
votes
0answers
43 views

Unable to access an same list with different count on ajax call

I have an list that consists of ten entries. on clicking a button ajax loads and the count of the element in the list increases to 20. I have to take the previous count(10) and compare with the ...
1
vote
1answer
188 views

Selenium: Click on input-field with complicated selector

I need the right direction to click on a input field. When I copy the CSS path I get the following: html body#root div#box div#content div#C_INTERNAL_OBJECT-98286949812.container ...
0
votes
1answer
253 views

Selenium: Best way to capture unexpected error?

I know how to check values and create tests and do the error handling if something fails, but what I din't found anywhere was the following: A test case tests specific things. But what when ...
0
votes
1answer
92 views

Selenium and PHP

As I read on the net, Selenium tests should be written in the language of the App if this is possible. Our intranet-application is written in PHP. I was able to get Selenium working with PHPUnit but ...
4
votes
3answers
514 views

How do you block Google Analytics from Selenium automated visits?

Basically, we have a javascript integration on client's webpages. We don't have much (or any) control of the deployed environment, hence the only way to test our integration is truly working is using ...
1
vote
5answers
1k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to ...
1
vote
0answers
142 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar , phpUnit, selenium extension for phpUnit. This test run ok $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
1
vote
1answer
2k views

How to send down arrow keys for a drop down?

selenium.getDriver().findElement(By.id("s2id_customFilter")).sendKeys(Keys.ARROW_DOWN); Am using the above code but it's not working."s2id_customFilter" is the id of the drop down.Am clicking on the ...
2
votes
1answer
626 views

Does Selenium's LoadableComponent make sense in a SPA (Single Page Application)?

I'm writing a UI testing suite for a single page javascript application using Selenium 2 web driver. I'm still experimenting with how to fit the app inside a page object model. At the moment I am ...
2
votes
1answer
216 views

Fitnesse + WebDriver: any working solution?

Could you please tell me if there were any attempts to integrate Fitnesse and Selenium WebDriver? I'm looking for something like Selenesse (https://github.com/marisaseal/selenesse), but for WebDriver, ...
4
votes
3answers
6k views

Webdriver Check if Checkbox is Set and Set it if Not

I am learning Webdriver with JUnit by going through Alan Richardson's Selenium Simplified book and taking translating the exercises/tests from Selenium RC to Webdriver. So far, this has proven to be ...
2
votes
1answer
460 views

WebDriver Ruby binding: How to specify Firefox binary path in code?

I'm writing my test cases in Windows7 with Ruby (v1.9.3-p194). Please, note that I want to specify Firefox binary path when using RemoteWebDriver, not FirefoxDriver. Here is the command line I used ...
0
votes
1answer
334 views

How to assert values on a page opened by a link on another page?

A link on page 1 opens a new page "receipt page". It contains only text values. I need to assert or verify values on the receipt page to ensure that this is the correct receipt. After executing the ...
-3
votes
1answer
751 views

What are the advantages of web driver over selenium RC?

Please provide answers in detail, So that we could clarify that which one is to choose, Web driver or Selenium RC.
1
vote
1answer
2k views

Click event in Selenium webdriver is not working [closed]

I tried everything: click, send, etc. Below is my code: WebElement element = ((WrapsDriver) selenium) .getWrappedDriver().findElement(By.xpath(LOGOUT_XPATH)); element.sendKeys(Keys.ENTER); try { ...
1
vote
1answer
397 views

How to Spy elements in an in-browser applet

I am trying to automate user interaction on a web application which is having embedded java applet in it. Need a tool that can spy the objects in the java applet in browser . The plan is to use FEST ...
3
votes
3answers
1k views

Handling popup with many buttons using Selenium webdriver

I'm using Selenium web driver with Java language. When there are two buttons in a popup i.e. ok and cancel , it can be easily handled with web driver using the following code: Alert alert = ...
1
vote
2answers
631 views

Is there any way to convert existing QTP script in to selenium?

Is there any way to convert existing QTP script in to selenium? if yes then how ? is there any converter to convert or recreation of script is only possible solution for tha?
0
votes
3answers
840 views

How to automate the action on a canvas object, when the canvas element has no name or ID in Selenium?

I want to automate the testing for a digital signature, which is a canvas element...Can anyone provide me with sample code, which could be used...I have tried, selenium.clickAt(), ...
0
votes
1answer
343 views

Advance commands of Selenium are not working in IE browser

I am using the SeleniumBackedWebdriver API in my current project, which supports both Selenium RC and WebDriver APIs. The Advanced User Interactions API like mouseUp(), mouseDown(), runScript() are ...
0
votes
1answer
680 views

SSO in Selemium web driver

I am trying to run selenium web driver(Firefox) test cases which will need a single sign on (web). Issue over here is i have to sign in manually with my OTP every time i tear down the test case. So i ...
5
votes
4answers
3k views

Testing Page Layout with webdriver

Has anyone tried to test the page layout of a website using webdriver? To be specific, using webelement.getPosition() and webelement.getDimension(). Shouldn't these two methods be enough for testing ...
0
votes
3answers
3k views

how to start work with selenium web driver any reference site for selenium web driver? [duplicate]

Possible Duplicate: Where can I find information on getting started with Selenium 2 I want to learn selenium web driver from the scratch. any one suggest me the reference site for selenium ...
5
votes
1answer
4k views

“java.lang.NoClassDefFoundError” Error when running Selenium RC script

First of all I have recorded the script in Selenium IDE, then exported into the junit4 (RC), then copied the junit4 (RC) code into Eclipse IDE. When I run the project with junit test, I found the ...
1
vote
2answers
2k views

Selenium 2.0 WebDriver: Clearing Session Data

Is there a way to clear out session data for a driver instance in WebDriver? My code is written in C# (and NUnit), but I'm not picky on the language for the answer.
0
votes
4answers
2k views

absolute Xpath is not working for Gmail login page

I have tested the Gmail login page and was trying to verify the Sign in label in the Gmail login page above the user name field. I am using FirePath to generate the Xpath. When I inspect the element ...
2
votes
1answer
234 views

Har File Monitoring

I'm looking to automate some testing of calls we make to an external service. I've gotten Browsermob-proxy and selenium to play together nicely. I'd now like to monitor the requests as they occur, ...
5
votes
3answers
11k views

What is Selenium's default timeout for page loading?

I am using Selenium 2. I have loaded the page using Get command in WebDriver class which is in the package org.openqa.selenium. My question is that what is Selenium's default timeout for page loading? ...
2
votes
1answer
350 views

Is the source code required when using Selenium-RC with Grails?

Can anyone help with using Selenium-RC + Grails? I have used Selenium with Java but had no problem writing the code and launching the browser. But is the source code of my project required when i need ...
3
votes
3answers
713 views

Selenium automating ICEFaces Application - locator for dynamically generated ids

I'm trying to automate a very short sequence in a web application developped using ICEFaces. I need to click on a button which is coded as <input type="image" title="Unterbrechen" style="padding: ...
6
votes
4answers
3k views

What are recommended scenarios to use Selenium Tests for?

My company is introducing BDD into our projects. Our customers have differents processes-cases wich also may fork at specific points. It is a mostly long and tedious work to test each case and each ...
3
votes
1answer
1k views

How to get XPath of a list element generated by AJAX?

When I type a keyword ("Documents 1.xml") driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml"); in this field: <input id="documentSelect_enter" type="text" ...
1
vote
1answer
433 views

Some Selenium tests fail on server but pass locally

i'd like to know if anyone faced the following problem with Selenium tests run: when scripts are running locally all tests pass, but when they are ran on server for the same site some of tests fail ...
3
votes
3answers
8k views

Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException

See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it ...
6
votes
3answers
9k views

Selenium: reuse existing browser session, instead of opening new windows?

This has been asked a million times on the web, but there's no clear cut answer. I tried "-browserSessionReuse" today without any luck; my tests keep spawning new browser windows. ...