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

1
vote
2answers
43 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
16 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
0answers
15 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 ...
2
votes
3answers
49 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 ...
0
votes
0answers
39 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 ...
0
votes
1answer
39 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 ...
0
votes
0answers
10 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
44 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 ...
1
vote
1answer
72 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 ...
0
votes
1answer
42 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 ...
2
votes
2answers
100 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
1answer
31 views

Iterating across various open windows using Selenium and Python

So my question deals with iterating over multiple open windows at a time. Suppose I am opening a website (best example would be Naukri). As soon as the page loads, two more pop up windows open up. ...
0
votes
1answer
46 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 ...
-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 ...
0
votes
1answer
65 views

Understanding how to handle auto-complete using Selenium and Python

While testing for a certain web application, I was faced with an issue of handling auto-complete scenarios. An example of this kind could be found here MagicBricks I have few questions related to how ...
1
vote
1answer
83 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 ...
0
votes
1answer
74 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 ...
0
votes
2answers
62 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
154 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() ...
0
votes
1answer
132 views

How to configure Selenium Webdriver with netbeans?

I installed netbeans and then Selenium Client Driver and the step i have done after installing Client Driver: Open NetBeans IDE. Goto File->New Project->Categories Java and Projects Java Application ...
3
votes
4answers
123 views

Selenium with multiple languages gives any additional features

I am new to Automation Testing. By googling about Selenium I gained a some knowledge on Selenium. But I have small doubt i.e., Selenium will support the multiple languages like Javascript with ...
0
votes
0answers
43 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
1answer
41 views

Efficent way of checking if Element is Not Present

I currently use TestNG's assertFalse to make sure a particular element is Not shown when not logged in on a site. eg assertFalse(isElementPresent(PageElements.PDFLinkText),"PDF link present when not ...
0
votes
0answers
11 views

kendoComboBox shows value injected through javascript but it does not save after saving the form

As shown in screenshot kendoComboBox gets values from dropdown as you type 3 characters in it. I executed below script to input value through JavascriptExecutor. Supplier1 = ...
2
votes
1answer
665 views

How to send Basic Authentication headers in Selenium?

I'm using webdriver.Firefox and I'm trying to send the following custom header: self.headers = { 'Authorization': 'Basic %s' % b64encode(bytes(self.args.user + ':' + self.args.password, ...
0
votes
2answers
75 views

How to execute Selenium + Junit Tests on Chrome

I have downloaded the Chrome Driver and i am able to execute my tests on Chrome. However Only local connections are allowed for it. How can i execute it globally on any machine without changing ...
0
votes
1answer
43 views

Assertion error when comparing the text of an element

I am getting the following error while try to verify assertion. I tried adding wait but it didnt help. Error message: java.lang.AssertionError: expected:<Risk Assessment Form: Completed> but ...
0
votes
1answer
52 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. ...
0
votes
2answers
82 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
49 views

How to write xpath with variable?

I have an xpath: //*[@id='00QE000000gQ9fv_ACTION_COLUMN']/a[2]/span in this xpath 00QE000000gQ9fv is dynamic and _ACTION_COLUMN remains the same. I stored 00QE000000gQ9fv in a String variable as ...
0
votes
1answer
45 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
245 views

Test recording with Selenium IDE vs manual programming test framework

I'm just beginner in this field. I have already created simple tests using Selenium in .NET environment together with NUnit. I also hard coded the same or similar tests for my framework. My question ...
2
votes
1answer
240 views

How to send Keyboard Shortcuts to browser using Selenium and Nodejs

I am trying to create a test script in Node.JS using selenium webdriver and in case I need to send keyboard shortcuts to the driver. I tried finding the //body element and sending them but only ...
0
votes
1answer
40 views

How to check when self.close(); executed or not in java?

the code is self.close(); some times the window is closed and sometime it doesn't closed and not throwing any popup or alert. So i wanted to check whether the window is closed or still open? How it ...
0
votes
1answer
107 views

How to change the Text of a IWebElement of Selenium in C#

The Title pretty much explains everything. I'm searching for a way to change let's say <h1 id="title">Title<h1> to <h1 id="title">Nothing<h1> I'm kind of desperate since ...
0
votes
1answer
62 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
158 views

Error: cannot find symbol in XSLT + TestNG Report

When I followed this link LINK to generate XSLT Report Using testng and to send email reports getting error message (Ex: package org.openqa.seleni um does not exist, etc...0). Please suggest me. ...
0
votes
1answer
245 views

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

sdk path-/usr/local/adt-bundle-mac-x86_64-20140702/sdk apk path-/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch Activity,Platform Name, Automation ...
1
vote
3answers
256 views

Selenium Automation Framework Design Technique

This question is related to how should I approach with creating selenium automation framework. I googled and studied few frameworks. Also, I created my own framework in which I was taking input from ...
0
votes
3answers
263 views

Wait for a random time with robot selenium 2 library

After submitting a POST request with a button click from a webpage, I want to wait for 60 seconds and click a link on that same page. The wait for 60 seconds part, is that possible to implement with ...
0
votes
2answers
589 views

How to use Xpath 'contains()' function to locate a Web element in Selenium Webdriver?

I am a beginner in learning Selenium WebDriver and XPath. I am trying to get the "<td>" Element of the Nested Table which Contains string '7-8-9.' Following is the HTML page code: <!DOCTYPE ...
0
votes
1answer
881 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
181 views

Behat+Mink+Selenium2 : javascript error “a is not defined”

I'm currently testing a Magento website using Behat acceptance tests with Selenium2 driver and Firefox. I need to hover over an element named "Products" in a top menu and then click on the a submenu ...
0
votes
2answers
162 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
2answers
533 views

How to run Selenium WebDriver java/testNG script with Windows Safari browser?

I know how to run test script in chrome and firefox. Please help me how to run my Selenium WebDriver java/testNG script in windows safari browser.
-1
votes
5answers
690 views

Selenium: Unable to automate file upload [duplicate]

Can someone please help me in automating file upload on this page- https://www.designerexchange.com/index.php/sell/quote I tried everything, but the file upload is very dynamic.
0
votes
1answer
77 views

Coding (automation) with selenium

I need help! I have thoroughly studied selenium IDE and now I want to proceed with coding using selenium(scripting), how and where should I start. I have setup complete environment settings with ...
0
votes
3answers
1k views

IE 11 gives Unable to find element with css selector or xpath or Xpath expression cannot be evaluated or does notresult in a WebElement

I am getting below error messages : IE 11 gives intermittently error like Unable to find element with css selector or xpath or Xpath expression cannot be evaluated or does notresult in a WebElement. ...
0
votes
1answer
1k views

Using Allure framework with Selenium webdriver tests for better reporting.

I am using Selenium webdriver for automation. I have around 200 scripts ready and now i need a good reporting tool to generate reports. I recently heard about Allure framework, which is an open source ...