Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
746 views

How to click on Canvas element?

How do I click on a Canvas element by using Selenium Web Driver and Java? I have searched Google but didn't find what I needed. A marker/pin is on the Google map and I have to click on the ...
0
votes
3answers
2k views

How can I do data parameterization in Selenium Web Driver?

I want my test case to run once and test n number of inputs at various positions. Suppose If I want to check a login screen for different members like manager,user,admin,e.t.c then instead of running ...
0
votes
0answers
160 views

how to maximize chromedriver on mac machine

driver.manage().window().maximize(); options = ChromeOptions(); options.add_argument("--start-maximized"); driver = ChromeDriver(options); I tried the above options to set the chrome window on mac ...
0
votes
3answers
123 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 ...
2
votes
6answers
408 views

How can I structure Selenium tests in a way that minimises the maintenance work?

What is the best way to build / structure the tests in a way that will minimize the work needed to keep the tests up to date as the product changes and improves?
3
votes
5answers
1k views

How can I reduce the execution speed in webdriver so that I can view properly what is happening on browser?

I want to reduce the speed for execution of script so that I can view the execution properly on browser. I want do this in webdriver.
0
votes
0answers
74 views

Is it possible to covert telerik test studio tests to selenium?

After a change of tooling, we now have a combination of telerik test studio tests and selenium tests. Is it possible to covert telerik test studio into selenium webdriver tests?
0
votes
0answers
2k views

How to select particular date from a date picker in web driver?

I want to select a date from a date picker which have options to change year from a dropdown. I have to get values in date of birth input field. I can send values to the date field by sendkeys command ...
0
votes
1answer
159 views

send multiple element to kendo multiselect from selenium

I want to sent more than one value to Kendo Multiselect element. whenever i use the Following function ((IJavaScriptExecutor)driver).ExecuteScript(String.Format("$('# ...
0
votes
1answer
604 views

Calling data from one class to another class - framework for JUnit

Please forgive me as I am still very new to the world of test automation. I have started out by using Selenium WebDriver with JUnit4, predominately on windows OS, although I have modified my scripts ...
0
votes
3answers
136 views

Functionalities of Selenium

I am learning Selenium Webdriver on my own, with a little bit of Java Programming background in my experience since the past three weeks. In this time, I have learnt the following functionalities of ...
1
vote
1answer
106 views

Selenium JUnit DOM Testing - Problem with counting Dynamic rows

I have a DOM structure "div > table id = 't1' > tbody > tr" (count of tr changes on resize) The javascript function changes the number of rows on resizing the browser. I want to count number of rows ...
-1
votes
2answers
2k views

How to solve the Unhandled exception: Modal dialog present

How do I solve the Unhandled exception: Modal dialog present. Below is error line. 1) test(TestCases1.ComparePage)org.openqa.selenium.UnhandledAlertException: Modal dialog present: Please retain at ...
2
votes
2answers
409 views

Difference between Selenium and TestNG

Am a beginner in Selenium and am trying to learn selenium on my own by googling. One thing which I noticed was in many of the posts which I read about selenium the name of the framework by name ...
0
votes
1answer
48 views

dragAndDropBy() function Encountering Exception

I am a beginner in Selenium and m trying to automate the drag and drop functionality. But everytime I am trying to execute the dragAndDrop() functionality, Eclipse is Giving off Exception. PF the ...
0
votes
2answers
1k views

Selenium session timeout

I have a session timeout problem like this: I am using selenium + webdriver + java(junit) While testing each(tab) test case of particular web page in one programme, i need first test Login button, ...
0
votes
2answers
3k views

Selenium IDE: Test works with firefox webdriver but not with htmlunitdriver

Disclaimer: I've never used any test tools before, as I'm in the developer team, not the QA team. Our team is tasked with the ultimate goal of writing an automated load test script, which will be ...
0
votes
2answers
266 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 ...
0
votes
1answer
939 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
170 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
403 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
937 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
79 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
617 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
181 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
119 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
362 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
243 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
157 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
2answers
1k 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
125 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
405 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
2k 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
100 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
3answers
16k 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
230 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
248 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
435 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
641 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
238 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
2k 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
622 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
1k 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
254 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
150 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 ...
2
votes
1answer
2k 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
2k 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
164 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
959 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
886 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 = ...