selenium

How do I make sure my website blocks automated tools like Selenium

I'd like to make sure that my website blocks automation tools like Selenium and QTP. Is there a way to do that ? What settings on a website is Selenium bound to fail with ? ...

Selenium, automated frontend testing on different OS

My complete working environment is Linux based (Ubuntu for desktop and server). I use Hudson and Selenium to execute tests on my EE6/ZK web application with any browser available for Ubuntu. But how would I test my application with IE (Windows) without setting up a Selenium server in Windows. Thought I could run Windows in a VMWare or V...

Can I use Selenium for load testing AJAX based asp.net website?

Hi, I am asked to find a load testing tool, which will load test an AJAX based asp.net web application. Please let me know whether Selenium is suited for this situation, or there are another tools to automate load testing? ...

using a remote Selenium server from Selenium test cases written in groovy

I've used Selenium ide to record test cases, export them to Groovy source, modify as necessary and run them. The default code expects a server on localhost, I'd like to use a server on a remote machine. How can I do this? When looking at the doc for GroovySeleneseTestCase it does not appear there is a setUp() method that allows you to us...

Junit and Selenium and tearDown

Hi all; Such a junit : @Test public void testA {...} @Test pulic void testB {...} @After public void closeBrowsers() Exception { selenium.stop(); } Here is the question : closeBrowsers() method called after every test method; in that case it is called twice and i got "Wrong test finished." from JUnit. I need a junit method/annota...

Best way to take screenshots of tests in Selenium 2?

So I need a way to take screenshots of my functional tests. Right now I'm using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to make sure the desired page is displayed. Are there any particular tools you guys know of that I can incorporate into my C# code that will trigger a screenshot? I co...

Selenium - can it test a B2B web service

I've used Selenium to do lots of UI testing from the browser. If you have a web service behind the Java jsp page i.e. in a servlet, you can test it from Selenium. Can Selenium be used to test a B2B web service i.e. a web service called from a backend that has no browser UI component? I have used SOAPUI to do this kind of testing in the...

How to set up Selenium to work with Visual Studio .NET using C#?

Hi everyone, I tried to google, but there are many different ways to work with Selenium. I'm using: - Windows 2003 Server - Visual Studio 2008 - Selenium IDE installed through Firefox - NUnit 2.5 is copied into C:\ - Selenium RC is copied into C:\ First I created a Library Project using C#. And this my class : using System; using S...

can i start a selenium server with different port

can i start a selenium server with different port from my code like we do seleniumserver s= new seleniumserver(); s.start() and set port?? ...

Excluding Selenium-server URL in JMeter Proxy Server

Hi, I'm currently trying to get JMeter to record the steps my selenium tests so I can perform load testing with the same tests. The steps are recorded fine but my problem is that its also recording the steps performed in the "selenium-server" window (ie. the extra windows that pop up when selenium runs). I believe if I add something li...

Running tests on multiple browsers with selenium grid and junit

I am trying to set up automated selenium testing but don't know how to run tests in multiple browsers. Based on reading stuff online I have selenium grid up and running with multiple browsers and it successfully executes my tests. I am trying to figure out how to setup my junit tests so that it runs all the browsers one after another or...

Selenium 2 + firefox getting System.NotSupportedException

Hi, I am trying out WebDriverBacked selenium. I used the below code. But, it gives me "System.NotSupportedException : command" exception. IWebDriver driver= new FirefoxDriver(); Selenium.WebDriverBackedSelenium selenium= new WebDriverBackedSelenium(driver,myUrl); selenium.Type(locator,value); Here the command gets replaced by any sele...

Can't get nth node in Selenium

I try to write xpath expressions so that my tests won't be broken by small design changes. So instead of the expressions that Selenium IDE generates, I write my own. Here's an issue: //input[@name='question'][7] This expression doesn't work at all. Input nodes named 'question' are spread across the page. They're not siblings. I've t...

Selenium assertText for all text in a table?

I need to assert that each row in table contains a certain text string, either through selenium IDE or a Java test case. What's the best way to do this? Here's my current test: Command assertText Target //table[@id='myTable']//tbody//tr[not(@style)]/td[1] Value myValue I need to test the first column of every row, but this...

Selenium test in Internet Explorer always times out?

I'm trying to run a basic test in Internet Explorer via Selenium-RC/PHPUnit, and it always returns with # phpunit c:\googletest.php PHPUnit 3.4.15 by Sebastian Bergmann. E Time: 35 seconds, Memory: 4.75Mb There was 1 error: 1) Example::testMyTestCase PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete() ....

Selenium with BrowserMob.com

Hi All, I am working with Selenium in order to create load balancing tests on a web server. The website has a username/password and in order to work with this I have a csv file filled with username password combinations. The issue is I am using the random function in Javascript to select a row from the csv file and populate the login f...

How to type data into table rows in selenium ide?

Right now I am trying to use selenium ide to write code that makes sure web pages on a website work. On one particular page there is a table that has text boxes in each cell. You can add a row by clicking a button. What I want to do on this page is type data into the first two rows. I used selenium ide and recorded me typing in data. The...

What exactly is selenese html?

I have been using selenium IDE to do some web app testing. I have been encountering errors on trying to playback the user actions, but have not been able to fix them because I have no idea what makes up selenese html targets and commands. It does not look like normal html to me but I cannot figure it out. If someone would be so kind as t...

Selenium 1 vs 2

I am starting up a test suite for an internal JavaScript UI library for the place I work. I have written about 10 Selenium 1 test cases or so in Python, for exploratory purposes, and so far it's gone well. I wrote the tests in Python and am using RC to run the tests in IE7,8,FF and Safari on the Mac so far so good. I know Selenium2 is ...

selenium XPATH matches method

I have problems running the matches XPATH method: @Test(groups = "regression") @Parameters( { "baseUri", "locale" }) public void testShopping(String baseUri, String locale) throws Exception{ session().allowNativeXpath("false"); String shoppingLink = session().getAttribute("//div[@id='footernav_links']//a[matches(@href,'.*shoppi...