selenium

How to tell selenium to use test database?

I'm using selenium-client to run a few tests, but Selenium seems to be using my development database. How can I point it to use my test DB? ...

need help with Selenium and xPath selectors

I'm trying to automate testing of the code... well, written without testing in mind (no IDs on many elements, and a lot of elements with the same class names). I would appreciate any help (questions are below the code): <div id="author-taxonomies" class="menu-opened menu-hover-opened-inactive" onmouseover="styleMenuElement(this)" onmous...

Selenium Address Bar

Good morning I am using selenium and I have come up against a bit of a wall. I am attempting to navigate to another page, by typing in the address bar, however I cant seem to do this when using selenium. Is this possible? I am not able to simply put a link on the page that goes to this page. Cheers Cameron ...

How do you do beautiful reports when testing with Selenium under Perl?

Selenium has some nice additional libraries, as long you are using Java to write your tests, e.g. LoggingSelenium. However, these are not usable if you are writing in Perl. How do you normally do proper reporting, possibly with screenshots after every significant step etc.? ...

Browse field

How can I choose a file from a file browse dialog (i.e., uploading a file from my PC) in a Ruby Selenium automation script? ...

Selenium open command sometimes not work

hi, sometimes my selenium tests get timeouts these suggestions: http://stackoverflow.com/questions/88269/how-do-you-get-selenium-to-recognize-that-a-page-loaded did not fix my problem. It mostly happens at the beginning of the test when i use open or openAndWait. The odd thing is the page actually gets opend but the test just stops and ...

Selenium browser detection

Good morning I have been running a few tests over the past couple of weeks and I have come up against a bit of a wall. I am testing in IE 7 and 8 and firefox. Basically my problem is that IE 8 does not yet support a plug in and firefox does not support a referer in a frameset, so basically I want to do is detect which browser I am usi...

Selenium testing -- any way to speed up the Selenium Server load time?

By design, Selenium makes a new copy of your Firefox profile each time a new test is run. I find this copy time is a considerable bottleneck, especially when running 100s of tests. (5-15 seconds to copy the profile anew). Does anyone know of any override behavior for this? I'd prefer my Selenium server to just reuse the same firefox ...

selenium vs windmill

Selenium vs. Windmill, what are your experiences, what do you recommend? ...

how to test logging in with openid using selenium

Is there a way to test logging in to a site with open id using selenium? In selenium all the tests live in the server, so once fill the open id url in the appropriate field in the web page and am taken to the 3rd party web page for entering the credentials my test can't run any more. Is there a way around this? ...

Firebug and Selenium: Performance

I'm a big fan of Firebug - I use it all the time for my web development needs. That said, one of the things I noticed with Firebug is that it significantly slows down the page. In particular, if Firebug is on when a (local) Selenium script is running, the script takes 2-3 times as long to execute, and I sometimes even see timeout errors....

In SELENIUM, how to I change focus to a new popup tab?

I'm using Selenium and Firefox. I have a link on a page (say linkA) that opens a new page in a new tab. The new tab is displayed when linkA is clicked. I then want to interact with the new page. Here is my selenium script: click linkA pause 5000 selectWindow Title click linkB (note: linkB is on the new page) Selenium cannot i...

testing with selenium

I'm a complete selenium newbie. Where should I start if I want to learn how to use it? ...

How do you create a /postResults servlet for selenium core.

I looked at the documentation and all it says is to create a servlet... With what? Is there code I need to use for this servlet? Does it just need to be blank and have the name of postResults? Is there a provided ant script for this? I can't find anything on google or selenium's site that lets me in on this. Thanks UPDATE: I found...

Data Driven Testing with Ruby's Test::Unit for Selenium

I'm pretty new to both Ruby and Selenium and I'm just trying to figure out the best way to build my test harness. I'm using Rake, Rake::TestTask, and Test::Unit to power this. I have a suite that I'd like to run once for each browser/os combination. I can't figure out how to parameterize my tests though, something I've become accustomed ...

Rollback database after integration (Selenium) tests

Does anyone have any suggestions for a best practice or preferred way of rolling back database transactions made from an integration test framework such as Selenium? Here is our current situation: We have a .net web project with a number of unit tests which work fine in our unit test environment - each test inherits a parent class whic...

Clicking on several links part dynamically generated

Hi all, I'm new in Selenium and testing matters. I'm trying to capture the id of an hyperlink element that is dynamically part generated. The click action is recorded like as below when i make click on in selenium, the part in bold are dynamically generated, there are many of them on my page and can differ from one site to another(I'm t...

reduce the size of the selenium frame

I do I reduce the size of the selenium frame, in order to increase the frame of the website I am testing? ...

What attributes do you use for Selenium testing?

We can search for specific field on website in a few ways: based on css, name, id, structure, even any text found. Which way have you decided to use? What would be best practice for it? Edit: I'm asking from developer perspective: How to write code that it will be easier to test with Selenium by one method (that is: being able to sea...

Assert that no values are selected from dropdown list with selenium IDE

I have this scenario: simple html form that is being processed with Ajax with clear (reset that form) button. I want to test clear function, hence the question: What is the right way to check that no values are selected from dropdown list with Selenium IDE? I've tried assertSelectedValue command, but didn't find a way to specify the un...