selenium

Flash automation using selenium

I m struggling a lot to automate flash using selenium. Can any one please give me a sample flash application code (methods) and the selenium code to automate the same. ...

How to check whether Selenium Server is running

I have bunch of phpunit tests, part of them using selenium, and i need to know wheteher selenium server is running or not (windows). Is there way to check it from php? ...

how to select combobox item internet explorer for extjs application ?

First of all the code below works for my app for non ie browsers (i am using perl with selenium for extjs testing): http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/ unfortunately the xpath library gives zero xpath count if i dare to add the visibility condition. The page content changes, so first i ha...

How can I test DHTML with Selenium RC?

I'm having problems testing parts of my html pages with Selenium RC. If an element is present in the page and is visible when the page is loaded then there is no problem, Selenium RC can access it and can get its value or write into it (if it's a input), etc. But if the element is not visible and it is only made visible using javascript...

How to integrate Sikuli scripts into Selenium?

I'm extensively using Selenium for integration testing. Works great for all normal stuff (HTML/AJAX), but no go when I'm trying to test third party ActiveX, Java applets and Flash components. The solution I've found for this is Sikuli. Works great locally, but how can I integrate that into Selenium? btw. if that's relevant, for Seleni...

Selenium Server on startup

Hello! I'm using Selenium RC in a Ubuntu system. I want to automate the tests, and I need to start Selenium-server.jar on startup of the machine. I created seleniumServer.conf in /ect/init/ with: start on startup start on runlevel 3 respawn exec xvfb-run java -jar /home/condde/selenium-server-1.0.3/selenium-server.jar -port 4444 W...

Assert.AreEqual() not recognising dynamically updated values.

I have an application in which you select an area of a map and our product price list changes (dependant of map area, size etc.) So in my test, I use runScript() to call the JS method underlying the map, the prices update and I do a simple check on the price that is set ala Assert.AreEqual(priceValue, selenium.GetText(priceElement)); ...

Selenium RC Hangs up. Why?

I'am trying to process simple selenium test with python driver. sel = self.selenium sel.open(login_url) #print sel.get_html_source() sel.type("email", username) sel.type("password", password) sel.click("//input[@type='submit']") self.wait_for_page() self.assertFalse(sel.get_location().endswith(login_url)) Everything works fine while ...

Selenium CSS locator space in locator

Hi guys! I know that selenium can use css locators. I know that the syntax is something like this: xpath=//div[@id,'topLeft')//span[contains(@class,'name')] or css=#topLeft .name Now, what if .name is like this: //span[contains(@class,'name with space')] Then it would fail... HOw to look for a locator that has space in it? Thank...

Selenium IDE - unable to select value in list possibly due to 'onchange' event

Hi, I'm having trouble running the following command to select a value in a drop down list using selenium IDE. Command = Select Target = NumberOfAdultRecords Value = label=4 When i run the test above in sequence with the other commands in the test case, the value 4 is not selected in the drop down. If i select only that one comman...

How to select specified node within Xpath node sets by index with Selenium?

I'm writing a Selenium testcase. And here's the xpath expression I use to match all 'Modify' buttons within a data table. //img[@title='Modify'] My question is, how can I visit the matched node sets by index? I've tried with //img[@title='Modify'][i] and //img[@title='Modify' and position() = i] But neither works.. I also tri...

Testing Auto-Complete Combo box in Selenium

Has anyone a good solution on how to test auto-complete combo box in Selenium? Thanks for the help, Manjide ...

selenium.wait_for_condition equivalent in Python bindings for WebDriver

I'm moving some tests from Selenium to the WebDriver. My problem is that I can't find an equivalent for selenium.wait_for_condition. Do the Python bindings have this at the moment, or is it still planned? ...

Hide warning messages in java

It is possible to hide the warning messages in java? ...

What are popular ways to pre-populate the database for Selenium testing?

If I have a test that requires X widgets as a precondition, I'd like to avoid the tedious process of making X widgets in the test through the front-end. The main alternatives appear to be either having a stated DB dump that is loaded for each test run, guaranteeing a pre-determined state (the dump file is generated by doing the precondit...

Rails App using Selenium but NOT for Testing -- How to organize ?

I am creating a rails app that is meant to be run locally and automate some of my web based tasks. The reason for rails is that I will import data in, select a number of tasks to be completed, then tell it to start. Ideally i will keep logs of runs and keep track of what tasks were completed during specific runs. My experience with...

How do we download a file by using Selenium?

How do we download a file by using Selenium? ...

selenium tests aplication path problem test not run on selected url

I try to start my selenium test using command line but test are fired to http://mycomputer and not to http://mycomputer/myapplication D:\projectsnet\Production\MyWebTests\tools\selenium-server>java -jar selenium- server.jar -Dhttp.proxyHost=mycomputer -Dhttp.proxyport=4444 -htmlSuite "*firefox" "ht tp://mycomputer/myapplication/" "D:\my...

Selenium+Mono Start Issue

I'm trying to get Selenium to work with Mono. I downloaded the VM from Mono (http://www.mono-project.com/VMware_Image) and Selenium RC. I am trying to use this simple code: using System; using Selenium; namespace SeleniumTest1 { class MainClass { public static void Main (string[] args) { ISelenium selenium = new DefaultSeleniu...

Selenium 2.0 IE Xpath Performance

I'm attempting to use selenium-dotnet-2.0a5 to iterate through many tables, and have to use xpath. e.g; var tableRows = _table.FindElements(By.TagName("tr")); foreach (var row in tableRows) { row.FindElements(By.XPath("td|th")); //iterate through tablecells and get text of each } Average times to iterate through about 50 ro...