Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
497 views

Unable to find element in selenium

I'm using the following code: if i[1] == "id_text": inst = driver.find_element_by_id(i[2]) #inst.click() for option in inst.find_elements_by_tag_name('option'): if option.text == ...
0
votes
1answer
77 views

Selenium 2.40 driver select tag issue

Following code works for selecting the last item from dropdown using Selenium 2.28 driver on Firefox and IE. Not working with Selenium Web Driver 2.40. I can see the dropdown opening but it is not ...
1
vote
1answer
219 views

selenium wget download file

I'm testing a web app with Selenium and I actually need to download a txt file during my test. But this seems impossible because a pop up appears asking to save the file. So, this blocks the progess ...
0
votes
0answers
631 views

how to read, print values from html table by webdriver using java

<div id="calendar" class="week_calendar_holder"> <div class="week-calendar"> <table class="week-calendar-header"> <div id="weekly_container"> <table ...
1
vote
2answers
67 views

Test results that differ from running via command line versus IDE

I have just run a set of automated tests via the command line using Maven as my build tool and JUnit4 as my test execution framework. There was a report of two errors which were recorded in a text ...
0
votes
0answers
414 views

On test case failure taking a screenshot with Selenium WebDriver

As the question clearly states, I used the screenshot coding in my catch block but it doesn't work. try { LoginPage lp = new LoginPage(driver); lp.userName.sendKeys("administrator"); ...
0
votes
2answers
107 views

How to get number of sizes of check-boxes i have selected, using selenium webdriver java?

As there are five number of check boxes in a page, i have selected two check boxes. so i want to get the number of size as two check box selected. How to get the number of size as two in selenium ...
0
votes
1answer
104 views

How to wait for ajax calls using a selenium command

I'm using the selenium ide to create test cases. Will the "AndWait" commands wait for an ajax operation to complete? Is there a specific command that can help with this? I prefer to use the selenium ...
0
votes
1answer
160 views

Selenium with Java to scrape data from website

I am trying to scrape data from a site I did code for. I want to scrape data on button click event but when I run my program it throws an exception Exception is: java.lang.NoClassDefFoundError: ...
0
votes
2answers
173 views

Screen Capture Website images for UI regression testing

I am trying to create a suite of regression tests for an asp.net / javascript website. I have been playing with selenuim & MS CodedUI tests but these all seem very complicated and more suited to ...
0
votes
0answers
114 views

Automated Flash / HTML 5 video playback testing

I would like to test the "playback" of an m3u8 video in 2 scenarious: It is embedded in a flash player (JWPlayer) or It is played back by an iOS device. I have heard of Flash Selenium, but my goal ...
0
votes
1answer
768 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 ...
1
vote
1answer
92 views

Is it possible to group java selenium tests in a larger utility class for reuse?

So say you have a made up flight booking application. I'm speaking on a very high level; because i'm more concerned with the design of these java objects. We're creating tests that have these classes ...
0
votes
2answers
232 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
4answers
1k 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. ...
0
votes
2answers
87 views

How can I write test cases without knowing the application in Selenium IDE?

If I don't know the application I only know the Software requirements, on Software requirement basis I need to write the test cases in Selenium IDE. So how can I write the Test cases on Software ...
0
votes
2answers
6k 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 ...
1
vote
1answer
140 views

Parsing xpath results in selenium ide

I'm trying to get a list of all the links that follow a certain rule ( their href is Downloads.aspx?<somestring> ) *Note: I'm using Selenium IDE, the Firefox plugin for this. In order to get ...
0
votes
2answers
98 views

Force selenium to use the portable firefox application

I have installed firefox 14 and has firefox portable version 25.0.1 on the machine, where I run tests for a web site. Due to a limitation in the site I'm testing, I cannot run my tests on firefox 14 ...
0
votes
2answers
241 views

Selenium: Basic Drop Down

I am very new to the world of QA and selenium. I have been trying to create a number of tests to run and cannot seem to get the commands to work properly on one specific drop down. When I execute the ...
0
votes
0answers
347 views

How to store webelements(dates) in an array

How to store webelements(dates) in an array and retrieve it? I got the total no. of dates by using the xpath : //div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' ...
0
votes
1answer
171 views

How to use locator value in WebDriver?

I am learning Java to automate testcases using WebDriver. As for now I was using Selenium IDE. I have a scenario. In date picker on selecting date, based on the current date and time-future timeslots ...
1
vote
2answers
1k 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
414 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 ...
1
vote
2answers
578 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 ...
0
votes
1answer
164 views

what is Keys.ZENKAKU_HANKAKU in webdriver?

As i came across this code, driver.findElement(By.name("xxx")).sendKeys( Keys.ZENKAKU_HANKAKU); so wanted to know why and when to use this kind of key.
1
vote
2answers
88 views

what are the equivalent commands for label and Goto label in webdriver

I used Selenium IDE to automate the project. Now I started learning Webdriver. In IDE, there are few commands like label and Goto labels, where I can create a bunch of code under a label and use ...
1
vote
1answer
822 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
2answers
990 views

How to set Firefox path on Mac OS for Selenium WebDriver?

I am beginner to webdriver. I have setup all configurations. I am using firefox 27.0.1 version with selenium jar files 2.40.0. I have written code to open firefox browser with a URL. I am unable to ...
1
vote
1answer
113 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 ...
0
votes
1answer
477 views

Selenium C# 4.0 release says you can hide the command prompt - how do you actually do it?

I'm updating to version 2.40 and was looking at the change log. http://selenium.googlecode.com/git/dotnet/CHANGELOG It says "Now provide an option to hide command prompt window for driver service ...
0
votes
2answers
411 views

Question about the Selenium getTitle() Method

In some instances, the getTitle() method does not work for me. Take a look. @Test public void testTitleReliability() { driver.get("https://www.google.com"); boolean title = ...
1
vote
1answer
468 views

Using Ruby Selenium WebDriver how to check URL or Navigation which return 404?

What is the most convenient way of using Ruby script for Selenium WebDriver to check all url's (from navigation menu)of any web page.Actually want to run them to see where they go. For example: ...
1
vote
1answer
865 views

Selenium IDE Store variable in Javascript of Page

I am attempting to inject Javascript directly into a page in order to set a variable for the page. I am still rather new to the IDE and I have seen the runScript function and I think it does what I ...
1
vote
1answer
568 views

How to update test cases in MS Test Manager based on automated test script results

For a web-application, I am automating my test cases using selenium web driver in java. My test cases are being managed using Microsoft Test Manager. Now, I want to update the test cases in the ...
1
vote
1answer
4k 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
105 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
169 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
2answers
3k views

How to handle the popup window in selenium webdriver using java?

use this url--http://www.indiangiftsportal.com/product_info.php?products_id=kaju-kalash-shivaaz ,then click add To cart , it ll show you one popup window in that am not getting how to click that ...
1
vote
1answer
519 views

How to use rollup command in selenium ide?

I am new to selenium IDE, As with reference to below image i cant click into rollup icon during and after my recording. So kindly explain me how to, why and what time we should use rollup ...
0
votes
1answer
114 views

Question about 'self.assertIn' & 'driver.title'

I researched this as much as I could on my own but came to no clear conclusion to my question. I've been teaching myself automation testing via Python + Selenium, I'm as new or n00b as it gets so bare ...
0
votes
1answer
1k views

How to select a particular date from calendar?

Hello Im using selenium ide, how to select an date from calendar popup through selenium ide, Below is my calendar popup.
0
votes
0answers
26 views

How to get Alert after using Fireevent command?

<tr> <td>type</td> <td>endDate</td> <td>test</td> </tr> <tr> <td>waitForAlert</td> <td>endDate</td> ...
0
votes
0answers
180 views

Python Selenium bingings ActionChains context_click having no effect for PhantomJS

I am using python selenium bindings for phantomjs. I am trying to simulate a right click and then take a screenshot (showing the context menu). But I am unable to get the right click context menu. ...
0
votes
1answer
324 views

Using Selenium webdriver with chrome browser - Junit or java - how to upload a file from desktop(or any folder in pc) to application [duplicate]

Using Selenium webdriver with chrome browser for automation - Junit or java programming - how to upload a file from desktop(or any folder in pc) to application
0
votes
1answer
297 views

How to select Security Certificate From security Dialog

The problem I would like to solve is as follow: go to a website which is protected by client certificate authentication using browser once the security challenge dialog box is shown, select on the ...
0
votes
3answers
691 views

Selenium tests written using Junit are not running in order

I executed some selenium scripts, but they are not running properly. Execution is taking the scripts randomly and start execution. I want to execute the scripts as per script order. Please tell me a ...
0
votes
0answers
137 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
2answers
176 views

Migrating website content, need to test using Selenium/Python

We are working on a large project which involves LOTS of content being migrated to a new version of a website. I would like to be able to test the content on a page from the old site, with the same ...
0
votes
1answer
124 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. ...