selenium

Selenium is to Web UI testing as ________ is to Windows application UI testing

I'm interested in UI testing a client only Java application. What is the most popular framework for doing so? What is your recommended framework? Also, why doesn't Selenium do this (or does it)? It seems to me that anything that can test a web app should be able to test a windows app. ...

Open firefox window in selenium with firefox addons loaded?

Hi all, when I run my test in selenium, the newly opened firefox window is opened without my installed addons like xpathchecker. Is it possible to setup selenium so that it will use firefox with installed addons? ...

Selenium c# windows form with datatable

Hi all, in selenium I am filling a dataTable with 2 columns with some extracted data from the browser. After it is filled I am displaying it in windows form through datagrip. Everything is fine but I want to force the datagrip to change width of columns automatically depending of the length of strings in dataTable. For example if the s...

How do I launch the Selenium IDE from the command line with a specific test case loaded?

I'm on Windows, and I want to launch Firefox and the Selenium IDE with a specified test case loaded and ready to play back. I've got as far as: >"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -chrome "chrome://selenium-ide/content" which launches Firefox and the IDE, but I don't know enough about the Selenium IDE or Chrome to g...

How to get Selenium and TestNG to open one browser to run tests in multiple classes

I am using Selenium with TestNG to test a website. I have created tests using the Selenium IDE and exported them to TestNG with each test being a method in a class. Eg, For login tests there is a Login class which has methods testLogin(), testLogin2() etc For signup tests there is a Signup class has methods testSignup(), testSignup2(), ...

C# with Selenium Ajax DropdownList Question

I have two dropdown lists, one containing a list of countries and one for states/regions that is not populated until one of the countries is selected. Both of these dropdowns are wrapped in an updatepanel. When I select the USA, the state dropdown list is filled with the 50 states and I am able to move forward from there. We are using S...

Load properties before a test

I am writing a set of tests to perform equivalency of web pages. The only differences (declaratively in the test) are the URLs. I'd like to do this by somehow performing multiple store text commands prior to a test so that I can use the stored properties later within the testpage. Is there a clean way to do this? old properties file l...

How do I parse a variable or multi value cookie in Selenium?

I am trying to parse a multi-value cookie using the Selenium IDE. I have this as my Tracking Cookie Value: G=1&GS=2&UXD=MY8675309=&CC=234&SC=3535&CIC=2724624 So far I have simply captured the full cookie into a Selenium variable with the standard StoreCookieByName command: storeCookieByName Tracking Tracking However I w...

Selenium: Unable to connect to the remote server

I'm trying to run a simple test with Selenium that somebody over in QA setup for me. This test has run before, and passed, but now I keep getting an error message. I don't know what it means, but I don't think it's a problem with my code, I think it's a problem with Selenium. This is the error: failed: System.Net.WebException : Unable t...

Access to file download dialog in Firefox

Is there any kind of API that can allow me to manipulate a file download dialog in Firefox? (I want to access the one that appears when user does something, not initiate one myself). What I want to do is to access this dialog from Selenium (and whether Selenium "privileged mode" is enough to access chrome interface is something I am not...

Selenium RC Tests + Unit Tests using PHPUnit throws a Seg Fault

So I have a set of unit/integration tests and a set of selenium rc tests as part of my suite. When I run them together using PHPUnit I get a Segmentation fault error message at the very end of the run when, during normal operation, it starts to generate log files. The interesting part is, if I run just the unit tests, or just the seleniu...

alternative for waitForPageToLoad in Selenium

I have a series of links on a page that take different times to load... I want to capture the amount of time each takes... The problem I am having is that the waitForPageToLoad time if exceeded causes the test to fail and the rest of my links do not get tested... I know I could just skip suspected links in the test or set the time limit...

How do I set this value for selenium selenium.useXpathLibrary("javascript-xpath"); ?

I'm using selenium and I need to change or make sure my instance of selenium is using this XPath library. Where do I configure the line selenium.useXpathLibrary("javascript-xpath");? Which file is it in order is it in? ...

Web page is 450kb. Is the size of the page making selenium XPath take 30 plus seconds to find an element by ID in IE?

I've been running selenium tests against a site and on one of the main pages that people use most often the page is 450KB. It's a horribly designed page but that's not really the point. When I'm writing my selenium tests, every time the test needs to locate something on the page by an ID, it takes 30 seconds to find the element. As a res...

Selenium.IsElementPresent using a Select Option's text (C#)

I'm using Selenium in C# with Selenium RC to do some automated interaction testing but have come across a stumbling block. Given this HTML: <select id="my-select-list"> <option value="1">First option</option> <option value="2">Second option</option> <option value="3">Third option</option> <option value="4">Fourth option...

OSS (PHP ?) projects using Selenium for functional testing ?

Hi, I'm sometimes using Selenium (mostly IDE to write tests, and Core / RC to run them) from PHP, using PHPUnit, and I was wondering : do you know any "big" project that uses Selenium for automated functional / non-regression testing ? I would most be interested in Open Source Ideally, PHP ; but JAVA and/or .NET would do too Well-kn...

I want to run Selenium test case file from command line.

When I use Selenium IDE that is extension of Firefox. After that I save some test case from Selenium IDE. Now I want to use command line to run this test case file. I try to do follow this how-do-i-launch-the-selenium-ide-from-the-command-line-with-a-specific-test-case but it not work. Please help me. ...

Selenium Data Driven Testing with C#

HI All, i am Dinesh Kanojia and i am new in the Automate testing and i want to perform data driven testing in selenium using ASP.NET(C#),ajax and almost all the features of jquery so any one can give me the step how to perform data driven testing using c# or some demo through which i can perform my testing thanks in advance, warm rega...

File uploads using the selenium-client gem

I am using the selenium-client gem with Webrat and Cucumber to test a rails project. I have Cucumber set up pretty much as described here: http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium My problem is that Selenium is prevented from performing file uploads. Ideally I'd like to be able to replicate webrat's 'attach_file...

cucumber + selenium + rcov = ?

Is it possible to measure coverage using selenium-driven features? ...