Run Selenium IDE Scripts In Selenium RC?
Dec 6, 2010I am new to using the selenium testing tool and would like to know how to run selenium IDE scripts in selenium RC.
View 2 RepliesI am new to using the selenium testing tool and would like to know how to run selenium IDE scripts in selenium RC.
View 2 Repliesselenium.Click("Search")
selenium.Click("Display")
selenium.WaitForPageToLoad("30000")
Assert.IsTrue(selenium.GetTitle() = "Display")
selenium.ChooseOkOnNextConfirmation()
Tried all the following possible solutions to click a button but all failed to do so. Page timeout after some time.
[Code]...
There is a confirm dialog box on clicking the cancel button. But selenium is not clicking it at all. Any idea how to do this.
I need to click on link in a table whose id is generated dynamically. I want to click on a link based on a text in some other column in the same row. Tried the following code but unsuccessful
selenium.GetValue("//table[@id=TableID]/tbody/tr[td/a/text()='Testing']")
Also trying with the following code
Selenium.click("xpath=id(TableID)/tbody/tr[td/text()='Testing']//input [@value='Delete']")
[code].....
I have a following code
selenium.Open("/logon.aspx")
selenium.type(strUsernameID, pUsername)
selenium.type(strPasswordId, pPassword)
[code]...
But as soon as I click the home link its redirected back to login page. This code works fine with another URL. I tried by putting id, everything. but couldn't figure out why its behaving like this.
I am new to interfaces. What I am trying to do is defined a browser in a interface and then trying to access it from tests. defined following in a sb.vb file
[Code]...
I'm using Selenium RC + .Net Client Driver. I've created a Firefox profile in my c:selenium directory. Here's my code:
Dim MySelenium As ISelenium = Nothing
MySelenium = New DefaultSelenium("localhost", 4444, "*custom C:/Program Files/Mozilla Firefox/firefox.exe -profile c:/selenium/", "http://www.google.com/")
When I run this, I get the following error:
Failed to start new browser session: Error while launching browser
What is the proper way to do this?
I am trying to check whether the button is enabled or disabled. I am doing the following
Assert.IsTrue(Browser.IsEditable(button))
but it gives me error that expression does not produce a value. Any one know how to achieve this. Currently I am using VS2010 MStest in vb.net.
Is it possible to select a value of a drop down by its dynamic index that is returning from another function whereas selectindex = 2 (generated dynamically)
selenium.Select(Id, "index = SelectIndex")
Background: My application is used to execute tests using Selenium RC servers, and occasionally I'm running into a problem when my call to a Selenium command doesn't return the response from the RC server - it then ends up blocking the thread that is executing the test.
[Code]...