Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
1answer
68 views

Selenium webdriver - Java with Webservices

In our application we are using web-services and DB, is it possible to integrate Selenium webdriver with web-services (Soap UI)? If two different frameworks are integrated, whether this is good?. My ...
0
votes
1answer
92 views

Webdriver: Selecting element by position in drop-down menu

can anyone here suggest a method to select an item from a dropdown menu, using the item's position in the list? Say you have a normal dropdown menu to select the month of birth. (Example on this ...
0
votes
2answers
3k views

How to iterate a list of WebElements and print the values one by one to perform some action

List<WebElement> allLinks = driver.findElements(By.xpath("//div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' or @class='datepickerSaturday' or ...
0
votes
2answers
35 views

How to revert the changes made by selenium in a tear down process?

I am in a situation where I have to revert all the changes which I made while testing the application. Is there any way of doing this in Testng? Suppose if I have added something into the ...
0
votes
1answer
47 views

How to open and get input from a popup before running test?

I want to open a popup before running my tests and after completing my test run. I want to give few inputs from the popup on basis of that my test will run. Suppose I have multiple links on which my ...
0
votes
4answers
119 views

Selenium - advantages and disadvantages of using Python vs C#

We currently have two teams. An automation team and also a web testing team. The automation team currently use Selenium and C# to automate tests on our web applications and legacy systems. As a ...
0
votes
2answers
46 views

Accessing a sub menu within a sub menu using Webdriver with python on IE8

I have been trying for a while to complete this task. For context, I have a link called with text "Main Menu" along the top of the page, that when hovered reveals a list of more links. These links ...
0
votes
3answers
2k views

Data driven testing on Selenium IDE

Is there any option to read data from an Excel on Selenium IDE? How does it work? I have to call data from an Excel file (where data are stored).
0
votes
1answer
1k 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 ...
0
votes
4answers
227 views

Flow Control in Selenium IDE

I am learning Selenium IDE and I am stuck on flow control. Can anyone advise me on how to master this concept? I would like reference on video, or documentation. Thank you
3
votes
3answers
68 views

Is it reasonable to use Selenium RC over WebDriver if the former seems more suitable for the task?

The tests I am doing are on IE8, which is used throughout the company, and doesn't look to be changing any time soon. After testing both pieces of software with the system, it seemed as though ...
0
votes
1answer
47 views

How to compare value of a td of a table with a numeric value using webdriver?

I have to compare a value of a td tag with a numeric value. I have o check whether the value coming in that td is >= some value. The html of td is: <td class="sorting_1">78000</td> I ...
0
votes
1answer
77 views

Selenium training in C# or Java [closed]

I want to go for a Selenium training course but was bit confused whether should I go for Java or C#. I have been to a training session for C# earlier so as far as the concepts are concerned I do have ...
0
votes
0answers
30 views

Is it possible to verify google analytics code, crazzy egg code, Optimizely code by selenium IDE?

I am a new tester in selenium IDE. I can check meta content by selenium IDE. But, I need to check some scripts as like Google analytics, crazy egg etc. Is selenium ide have any opportunity to check ...
1
vote
0answers
46 views

How can I use Surefire to run parameterized tests in parallel?

I am using jUnit's Parameterized annotation on some Selenium tests to specify the browsers they should run with. I am also using SureFire's new parallel parameter (set to "classes") to try and run ...
4
votes
3answers
5k views

Drag and drop using Selenium IDE

How do I drag and drop an object from one grid to another in the same page using Selenium IDE. This is a web page, and it is designed in ExtJS. Please help me out doing this using the IDE.
6
votes
3answers
12k 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. ...
1
vote
1answer
533 views

Verifying Youtube Video in Selenium IDE

We have a need to verify content on our site using Selenium IDE; specifically for this question Youtube video served up in an iframe: {<iframe width="506" height="315" frameborder="0" ...
5
votes
3answers
103 views

Selenium/Webdriver with team member that don't have programing skills

We are planning on integrating/developping automation solution with Webdriver 2.0 for our web application. We currently have 2 members in the team that can write code, and understand enough Java to ...
1
vote
3answers
1k views

Selenium Webdriver - Unable to get focus back to child window

I have scenario where clicking on some link in parent window opens a new window, after performing the actions on the child window, iam unable get back focus on the parent window, I have used the ...
2
votes
1answer
64 views

How to find the window name using firebug?

I can get the window name through selenium IDE, but with the same name, i cant able to find through firebug. Is there anyother way to find the window name using firebug?
0
votes
1answer
53 views

How to automate range values using web driver?

I have to test a price range bar implemented with a jQuery slider. Suppose the defined range is 100-10,000. I want web driver to slide the minimum value to 2000 and Maximum value to 8000. I thought of ...
1
vote
4answers
97 views

How to check no. of characters accepted by an input field using Selenium WebDriver?

I want to check the validation of an input field that what is the number of character it accepts? Suppose an username field is allowed to accept 15 characters then how can I automate this test?
1
vote
3answers
141 views

Ideas to implement offline smoke test for downloaded excel files

I run automated smoke tests for my web application, but until now, these tests are not covering offline excel spreadsheets that are downloaded by the user. I'm starting a study to find possible ...
0
votes
3answers
4k views

Running WebDriver tests in parallel using testng.xml

I'm trying to run WebDriver tests in parallel using testng.xml. I'm able to run testng tests in parallel by using parameter parallel="tests" but running with following paramters, "methods", "classes" ...
2
votes
1answer
81 views

problem handling multiple windows in webdriver

Scenario: Step-1.Click link from window-1.New window gets opened.Say it as window-2. Step-2.Do action on window-2. Step-3.Close window-2. Step-4.Move focus to window-1 Step-5.Click an element in ...
3
votes
2answers
136 views

Python or Ruby , Which has the better support for selenium [closed]

I need to use selenium to do some automating testing, I wonder which Language has better support for selenium, That is once new version selenium released, And I can get the newest version binding ...
11
votes
6answers
1k views

How do I keep Selenium test cases DRY?

I'm somewhat new to Selenium and I have a problem. Whenever I write a test case, that test case starts with logging in, and it's the same four steps every time. If I change the password for that ...
0
votes
1answer
114 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

I am new to Selenium WebDriver. 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 without asking confirmation. ...
25
votes
4answers
2k views

Are Selenium functional tests reliable enough to be worthwhile?

I'm finding that regardless of how solid my tests scripts are, I still have tests that fail (falsely), even though they worked just fine before. I'm not talking about if markup changes (although that ...
1
vote
0answers
35 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
106 views

how to use xpath for the following case

.//*[@id='colDiv_Apr282014']/div[5]/div[1] .//*[@id='colDiv_Apr282014']/div[9]/div[1] .//*[@id='colDiv_Apr282014']/div[11]/div[1] In the xpath above, you can see the value inside the first div-is ...
16
votes
4answers
28k views

What is the correct way to select an <option> using Selenium's Python WebDriver

I would like to select an <option> child of a <select> using the Python WebDriver. I have a reference to the option WebElement I wish to select and have tried select() and click() methods ...
2
votes
3answers
5k views

Selenium Webdriver cannot locate element for right click event

Hi Guys. I have a problem with right click mouse event in Selenium 2.0. I'm using that method but in a console I've got: Unable to locate element: ...
1
vote
1answer
380 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 ...
3
votes
1answer
954 views

Tests running very slow against Internet Explorer 9

I have a test automation suite setup using Selenium and RemoteWebDriver that runs against IE7/8/9/10 and FF10/20/24. The suite takes an average of an hour to complete on each browser except IE9 which ...
0
votes
0answers
44 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.
2
votes
3answers
155 views

Selenium IDE and Selenese scripts in Continuous Integration

Apologies if this is not the forum for such a generic question. As our organisation moves to an Agile project methodology, we need to be able to rapidly automate applications as they are built up ...
1
vote
2answers
741 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
106 views

Faking system time/date with Selenium Webdriver?

Is webdriver capable to run a browser with a faked time, date or time zone? Such ability would be highly useful for my automation purposes. Yet, I did not find any such ability in the webdriver ...
29
votes
12answers
956 views

Building “slow to break” regression tests

I need to build a lot of regression tests for our product at work and I plan on using Selenium. I am concerned about building tests that will become quickly outdated and broken based on the fast pace ...
2
votes
1answer
165 views

How to run multiple browser instance with Webdriver, Java, and Junit/TestNG?

I have a test ready to be executed but it takes a long time to finish. In this test I'm feeding in csv data, so basically the whole test will run 56 times. I was wondering if there's anyway I could ...
2
votes
1answer
95 views

Best approach for Page Object Model Framework where the page structure changes very frequently

We are developing Page Object Model Framework for our web application test. The problem is we are having three different structure for the same page type. We want our automation to work in all cases. ...
0
votes
1answer
91 views

Handling Image upload

<span class="span3 config_camera_wrapper img-rounded" style="border: 2px solid #fff;" align="center"> <img class="img-rounded" src="images/bookappt_v3/logo-placeholder.png" alt="140x140"> ...
0
votes
2answers
5k views

Error upon starting Select server “Could not find agent library JVMHOOK”

I am attempting to run the Selenium server for the first time on my machine and am receiving an error when running the jar, or when attempting to find the java version. Here is the error: ...
0
votes
0answers
39 views

Selenium WebDriver Code for PeopleSoft Sub Page

I am new to Selenium WebDriver World. I am trying to work on a script to Add a Person in PeopleSoft HCM Application. Basically, On the Personal Data Main page, you first start by adding a Effective ...
9
votes
8answers
14k views

Load Testing, Selenium Vs Jmeter Vs other tools

I have been using Selenium/Webdriver for functional testing in a grid setup. We are in the process of transitioning to a Solr based search service. I already have Solrmeter for load testing the ...
1
vote
2answers
141 views

Proper way to create an object repository in Selenium project

I have some questions about creating an Object Repository for a selenium project: 1) What are the main reasons that we create an Object Repository, as opposed to hard coding the element IDs in our ...
3
votes
4answers
15k views

How do I close the browser window at the end of a Selenium test?

I have googled for the answer, but the ".stop()" so frequently mentioned doesn't work for me. The Chrome window the test was running in remains open. def test_getResults(self): sel = ...
10
votes
9answers
2k views

What is a good website to hack around using Selenium?

I want to learn Selenium, but I don't know what to code. Sure, I can throw Google some queries, I can fill out some forms, press buttons, find divs and links, etc. But I think this stuff is pretty ...