Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

learn more… | top users | synonyms

0
votes
1answer
531 views

Running Selenium webdriver scripts in android device (Samsung galaxy tab)-Portrait mode

I have been stuck in an issue while running selenium webdriver script in android device -Portrait mode. Script is running successfully in landscape mode but when we run the same script in android ...
0
votes
1answer
67 views

sometimes “invisible element” exception and sometime ‘timeout’ appers

I am writing a test script in selenium webdriver(selenium 2.0) with C# for below html- <table id="A_switch" class="tabswitch"> ------ </table> <div id="A" class="page ribbonpage"> ...
2
votes
2answers
3k views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
0
votes
0answers
4 views

How do I put a MySQL fixture in a PHPUnit driving a Selenium2?

I have a Symfony2 web project using PHPUnit for the unit tests. Recently I added functional tests with the package phpunit/phpunit-selenium. I have added tests to do a login, then to create an item ...
0
votes
0answers
22 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
3
votes
1answer
103 views

Eclipse is automatically running unwanted selenium tests

I have two test files (lets say they're SomethingTestA and SomethingTestB). Inside SomethingTestA, I have a bunch of mini smoke tests methods, like so @Test public void testCreate() { ... } ...
0
votes
3answers
4k 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 ...
1
vote
1answer
123 views

Unable to open Safari app on iPhone simulator while running Selenium test using ios-driver

I am trying to automate mobile web testing using ios-driver. The safari browser does not open even though the simulator launches. The configuration as shown on terminal by running the command java ...
1
vote
3answers
3k 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 ...
6
votes
2answers
4k views

How can I send the action “Ctrl” + “Alt” + “Double Click” to the browser

I am writing automated tests for a site at work and we have certain screens that when we send a specific set of keystrokes, a section of the page will become visible and allows us to see information ...
0
votes
1answer
33 views

Want to get value from the below code snippet through Web Driver

<script> jQuery(function() {jQuery("#chart").kendoChart({"chartArea":{"background":"#f7f7f7"} "title":{"position":"top"} "legend":{"visible":false} "series":[{"name":"Consumption" ...
2
votes
1answer
290 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar, phpUnit, selenium extension for phpUnit. This test runs ok: $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
0
votes
1answer
97 views

Selenium Webdriver: No such element exception even though element gets available after waiting for some time

I've been keep on getting NoSuchElementException whenever I try to get an web element. I know that the web element becomes present after some time. So, I've explicitly waited for 5-10 seconds until ...
2
votes
2answers
121 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 = ...
5
votes
3answers
8k views

Desktop Application testing using selenium

Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
2
votes
4answers
665 views

Does anyone have any suggestions for a Selenium with Ruby tutorials?

I have gone through this book http://www.compendiumdev.co.uk/selenium/ which is excellent and I highly recommend it to everyone! I was wondering if there is a similar book/tutorial with a Ruby focus ...
0
votes
1answer
270 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
0
votes
2answers
252 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When I click on the select box and then further use click() on the value item , it works fine. but when I use Keys.ARROW_DOWN its displays the ...
0
votes
0answers
29 views

Stale Element Reference Exception:Element is not attached to the page document

I am getting stale element reference exception while running a loop. WebElement ControlTypeOp=driver.findElement(By.xpath("//select[@name='ctl00$ContentPlaceHolder1$ddlControl']")); Select ...
0
votes
1answer
52 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
0
votes
0answers
24 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: ...
0
votes
0answers
32 views

Submit button not working in Selenium webdriver

When I launch ChromeDriver or IEDriver and click the submit button (manually and automatically), it does not send the inputs. It works outside of webdriver though, I can click the submit button and ...
1
vote
1answer
1k views

Selenium element not selectable for a kendo ui element

I am having an issue with an element which works with a mouse click and there are some items from which one has to be selected but its unselectable is set to on. Whenever I try to select the elements ...
1
vote
1answer
466 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and i am unable to proceed. But I am able to do it manually. Now to proceed with ...
0
votes
1answer
56 views

Selenium webdriver with TestNG

I am new for selenium webdriver. I have done following things in my project. I am struggled few things. How i can do it.. Here i am explain what i done. I am using Selenium webdriver with TestNG. ...
2
votes
3answers
74 views

Advanced selenium webdriver tutorial/course [duplicate]

Is there an online advanced/intermediate tutorial on Selenium Webdriver. Preferably using Java. I've searched a lot but could not find such a course/tutorial. Almost 99% are very basic, and I would ...
6
votes
8answers
10k views

What Concepts of Java do i need to learn to use Selenium Webdriver?

I want to learn Selenium WebDriver automation using Java. I have done manual testing before and want to learn automation. I just know the basics of Core Java. Could you please suggest me the Core ...
0
votes
2answers
216 views

Need help to get drop down in a list (phpunit+selenium2)

I am new in Phpunit and selenium2. Need help to get all the values of drop-down in a list. <select id="month" class="_5dba" title="Month" name="birthday_month" aria-label="Month"> <option ...
0
votes
1answer
66 views

Unable to open the specified URL on a real device while running Selenium tests using ios-driver

I am trying to automate mobile web testing using ios-driver on an iPhone 6 plus (real device). The Safari browser opens but the specified URL (google.com in this case) is not opened (i.e. only ...
0
votes
1answer
303 views

Handling PopUp windows in selenium webdriver by using c#.net

Example of Handling PopUp in selenium webdriver using C#.Net [TextFixture] public class PopUp { IWebDriver driver = null; IWebElement element = null; [SetUp] public void setUP() ...
1
vote
2answers
76 views

Can I use Eclipse for .Net application with Selenium jars?

My application is developed using .Net and now I need to automate this application using Selenium. So, please guide me which Selenium jar and IDE I have to use to do automation. I know, for Java ...
0
votes
0answers
35 views

Selendroid Selenium grid android test couldn't find element

Is it possible to do a parallel test of android native apps with Selendroid and Selenium Grid? If yes, kindly give a code snippet. I am trying to run a test on 2 android devices. Though, being in the ...
0
votes
0answers
23 views

Integrating Selenium Webdriver tests written in Java to SpiraTest

I'm interested in SpiraTest's and Selenium Webdriver's collaboration. My objective - launch a Selenium test written in Java on Eclipse. Can the SpiraTest quality management tool run .exe or .bat files ...
0
votes
1answer
1k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I ...
0
votes
0answers
69 views

Selenium sendKeys() different behaviour for Chrome, Firefox and Safari

Below is simple snippet of code: @FindBy(className = "element-to-press") private WebElement elementToPress; // some other code Keys move = Keys.ARROW_DOWN; gridContainer.sendKeys(move); In ...
2
votes
4answers
13k views

want to scroll down page/form using selenium webdriver

I want to scroll down a page that is coming inside a form, not in the main page. I tried this code JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", ...
0
votes
1answer
66 views

Specify what tests to run from SpecRun command line?

I'm looking for a way to specify what tests run when using specrun's command line (runtests.cmd). Is there a way to only run tests with a specific flag or specific feature file? Or is there another ...
0
votes
2answers
69 views

StaleElementReferenceException in selenium

I am getting stuck at below : List<WebElement>lstType=driver.findElements(By.xpath("//select[@id='ddlGeneralType']/option")); Thread.sleep(2000); int i,j; System.out.println("the no of ...
0
votes
1answer
46 views

Upcasting FirefoxBrowser to Webdriver

When we write the code to automate the browser then what is the need of upcasting in the code Webdriver Some_Variable = new FirefoxDriver(); //Run time Polymorphism My question: What is the need to ...
1
vote
1answer
121 views

Mocking HTTP reponses in Selenium Web Driver using Python

I am currently experimenting with the Python version of Selenium Web Driver. Using the driver has been straight forward so far but I have been struggling recently with the issue of mocking HTTP ...
2
votes
2answers
162 views

Verifying if an image Is displayed on a webpage

I have read that there is no "sure shot" way of knowing that an image is loaded or displayed on a webpage using Selenium. I want to know the reason behind it, as to why this is completely not ...
0
votes
0answers
11 views

Is there a way to create an access control list (or some other form of security) for the Selenium WebDriver?

I recently installed Selenium on my CI server. After I did this, there was a new URL accessible on my server at http://my_url.com:4444/wd/hub. I was pretty uncomfortable about having that URL just ...
24
votes
12answers
72k views

How to download a file using Selenium's WebDriver?

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = ...
0
votes
0answers
51 views

Selenium Grid2 - IOException thrown while closing Closeable.

I am executing my Selenium tests against a Grid server, hosted on a different machine. My grid invocation is (bat file): cd c:\ start java -jar c:\selenium-server-standalone-2.46.0.jar -role hub ...
1
vote
2answers
105 views

How to get the text present between <H2> tag

I am trying this: String str = "//*[@id="Result"]/h2"; WebElement vele = driver.findElement(By.cssSelector(str)); String vin = vele.toString(); System.out.println("Vin is"+vin); The result is: ...
0
votes
1answer
51 views

Selenium webdriver not recognizing div element

I have found several questions related to this one particular travel website MakeMyTrip, so I tried to automating it. I was successful in selecting the primary details and getting on the Flight ...
3
votes
4answers
3k views

IE always opens with random local host and msg:"This is the initial start page for the WebDriver server

I have my WebDriver tests running parallel in IE, Chrome and firefox. When I run test in IE browser it node gets registered with the hub, and the browser opens and it gets redirected to some random ...
5
votes
1answer
2k views

How to Debug Selenium WebDriver Actions?

I am using Selenium WebDriver and run into a issue. In the UI, elements are seen by the WebDriver but couldn't perform any actions such as click, type, select etc. Elements are findby the selenium ...
2
votes
1answer
6k views

How to retrieve INT value from TEXT box using Selenium/Webdriver Python binding?

I have this code tcost = driver.find_element_by_id("MainContent_txtTotalCost").text total = int(tcost) driver.find_element_by_id("MainContent_txtVisa").send_keys(total/2) ...
-1
votes
1answer
49 views

Wikia/selenium-tests - missing github repository

I am new to testing -- I am trying to set-up a test environment, but I can't find this one: requirement It says, in the section "Running Tests", Create symlinks for /selenium-config/config.xml ...