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
4answers
154 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); action.sendKeys(Keys.ESCAPE).build()...
5
votes
3answers
364 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 ...
1
vote
3answers
95 views

Unable to locate element throwing a org.openqa.selenium.NoSuchElementException in TestNG

Am unable to click on element after executing a First test second test showing a org.openqa.selenium.NoSuchElementException . My code Here: public class snapooh { WebDriver driver; @BeforeTest ...
1
vote
3answers
247 views

Unable to select text from dropdown - Gmail.com Month Dropdown

Im also facing the same error. Unable to select Birthday, Gender & Location in gmail signup page. I'm using Selenium Webdriver. Please find the below code for birthday. new Select (driver....
0
votes
3answers
51 views

xpath - element is not located even when I construct the xpath

element is not found //HTML Code <input type="text" maxlength="61" style="width:185px;" value="" name="name73652d80" onblur="fieldTrack(this); "/> input type="text" onblur="fieldTrack(this);" ...
2
votes
2answers
606 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 -...
2
votes
2answers
632 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 ...
1
vote
2answers
46 views

selenium 2.0: Design pattern for projects which doesn't have so many pages

I have been POM design pattern with pagefactory from past ~ 4 years. In current project again I have implemented same pattern, but there are not so many pages infact majority of test cases work on 1 ...
1
vote
2answers
156 views

How to press CONTROL key & Select multiple values from Excel

What I am trying to do is select multiple options from this example site while holding CTRL http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html The multiple selection values would come from ...
0
votes
2answers
219 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 ...
0
votes
2answers
712 views

Selenium - How to get table rows visible in the dialogbox?

In a Selenium Junit test, for a table with 'n' rows in a dialog box of a webpage, I am able to calculate number of rows using Table.size() (Table is a List of elements which finds elements with tag tr)...
5
votes
1answer
233 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 -...
2
votes
1answer
23 views

Got an error while build or clean mavan project-Could not initialize class org.apache.maven.index.ArtifactInfo

Hi All when I am try to build or clean the mavan project I got below error can any help me ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'POM-...
2
votes
1answer
301 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 "about:...
2
votes
1answer
603 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 ...
2
votes
1answer
707 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 ...
1
vote
1answer
130 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"> &...
0
votes
1answer
88 views

AjaxElementLocatorFactory = Implicit or Explicit

I'm looking for solution in page factory to wait. I don't want to use something like Implicit wait, but something like Explicit. I read about AjaxElementLocatorFactory, but I'm not sure that it ...
0
votes
1answer
83 views

Division not appended on click event in phantomjs

On clicking the link: <a href="#">xxx</a> the below div should be appended to the webpage <div class="desc cloned"> <div class="wrap"> ...
0
votes
1answer
96 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
1answer
410 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 ...
-1
votes
1answer
54 views

How to verify text under <P> tag in selenium

I want to Verify text "No results were found for the query:"under tag in selenium how to verify this text how to take xpath for this div class="fl" style="width: 99%;"> Search Results No results ...
-1
votes
1answer
846 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 calendar....
-3
votes
1answer
449 views

Selenium Remote Control versus Jenkins

Is there any sense in using Selenium Remote Control if we already have Jenkins? For instance, I have developed some Capybara+Selenium+Firefox tests and used to run them on my Macbook. Now it is time ...
2
votes
0answers
72 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 ...
1
vote
0answers
36 views

How to sort Calendar dates using Selenium?

I have a situation with automation testing. The situation is, I am adding files with different dates as filename and need to keep those files in descending order and the files with no date goes in end....
1
vote
0answers
57 views

Page factory performance

Does page factory affect on performance for test execution when we have a lot of elements with @FindBy? We use Java as a programming language.
1
vote
0answers
101 views

Jenkins Build Is Hanging

We are using jenkins for the continuous integration. I have already created a jenkins job for running all my robot framework automation test scripts & Everything was absolutely working fine. But ...
1
vote
0answers
89 views

Is it possible to automate tests on an embedded WebKit browser on Mac OS X?

Is it possible to automate the tests on a WebKit/WebView browser that is embedded in a Mac OS X desktop application, preferably using Selenium or some Mac-based tool like AppleScript or ...
1
vote
0answers
123 views

Handling different input fields using Robot Framework

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application (I am writing test cases in .txt format) I am having a problem on handling two ...
1
vote
0answers
110 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 ...
1
vote
0answers
1k views

Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency

I have a class with dependent methods using the TestNG annotation dependsOnMethods The test runs fine 100% of the time if I simply run it as a TestNG Test from the package. When I include the test ...
0
votes
0answers
22 views

How to create chromedrive.exe from chrome driver source code?

am trying to create chromedriver.exe from the chrome driver source code but i didn't found any correct solution to create this.
0
votes
0answers
16 views

The Automated test can be executed paralleled by Jenkins, how to make a standalone file for it

I am using the maven-surefire-plugin with selenium grid and the test can be executed by Jenkins paralleled. I have using the multi-thread method in the code but that parallel can only be executed from ...
0
votes
0answers
93 views

How to read Data from XML file and compare the Data with Database Tables as an output using Selenium?

I have to test more than 250 feeds which contains of listing data. Hence, the goal is Download feeds file from existing legacy system which is in XML format and then compare the values with New(re-...
0
votes
0answers
29 views

Store result file dynamically

I'm using selenium selenium-server-standalone-2.53.0.jar file. java -jar selenium-server-standalone-2.53.0.jar -userExtensions user-extensions.js -trustAllSSLCertificates -htmlsuite "*firefox" "https:...
0
votes
0answers
56 views

driver.getWindowHandle() doesn't work after multiple iterations

driver.getWindowHandle() object is not returning a value when I execute the script multiple times. OS: Win 7 32 Bit IE : 11 Selenium: 2.53.0 IEDriverServer: 2.53.0 First time it is returning ...
0
votes
0answers
44 views

Selenium to retrieve the title text under SVG

everybody. Just a tough thing that using Webdriver to get title text under SVG section, so far, I get "" text. please see below <g class="v-axis-label-wrapper"> <text x="72.65" y="6" text-...
0
votes
0answers
100 views

Selenium Grid2 and Sikuli

Has anyone tried integrating Sikuli to Selenium Grid architecture ? I have read many articles online but unfortunately couldn't reach to a solution. To briefly explain, my scripts are equipped with ...
0
votes
0answers
134 views

How to select few text lines using Robot Framework?

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application ( in .txt format ). One of my test cases involves to select few lines of text from ...
0
votes
0answers
1k 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
0answers
76 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
157 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
50 views

WebDriver : selection is not working properly

I want to select Manage Customers & Projects but with below code 2 options i.e. Manage Customers & Projects and Manage Tasks both are getting selected. Not getting whats going wrong : ...
0
votes
0answers
57 views

Selenium script for selecting any one of the users

I have added the code selecting anyone of the user but only first time it works so please help me with this. Stripe.com driver.findElement(By.xpath("//ul[@class='navigation']//a[@href='/test/...
0
votes
0answers
65 views

Is this possible to start a selenium test with two different hub?

I'm new to selenium. I'm running selenium grid using a hub with 5 registered nodes. Is this possible to start the test with two different hubs.
0
votes
0answers
382 views

Regex escaping issue in Selenium IDE and WebDriver

I have a Selenium IDE command evaluating a regex against a string in the DOM, something like this - Command waitForEval Target /http:\/\/www.site.com\/path\/image-/.test(window[window.varA+'-'+...