I have a set of Selenium/MbUnit Tests that work fine, but tend to take a while to run (over 4 hours) A problem i am finding is that about 1 in 20 test seems to timeout when running. I have confirmed the Selenium GRID is working and the Selenium RC's are all fine, it just seems to be a qwerk of the system. What is really annoying though i...
hi all. I'm writing some selenium tests (in rspec for a rails app). One of my pages loads a swf and while i don't want to test the functionality of this flash app i do want to test that it loaded up ok. Is this possible?
In case it helps, the html to load the swf is:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codeba...
I would like to assert that a table row contains the data that I expect in two different tables.
Using the following HTML as an example:
<table>
<tr>
<th>Table 1</th>
</tr>
<tr>
<td>Row 1 Col 1</td>
<td>Row 1 Col 2</td>
</tr>
</table>
<table>
<tr>
<th>Table 2</th>
</tr>
<tr>
...
I want to use selenium/JUnit to do some mobile emulator testing using the FireMobileSimulator plugin. Given that the plugin can emulate a number of different phones, I'd like to be able to cycle through testsswapping out devices as required.
The device being emulated is controlled by two config options. Being able to manipulate these pr...
I am using selenium for sometime and doing good with it. I would like to try Tellurium. Searched and find only few questions about that. I would like to know the following
What is the main advantages of using Tellurium?
How it is different Selenium+Groovy?
...
I am having great difficultly testing cascading dropdown boxes with Selenium. I would like to know what the standard approach is for this. I'm a bit unclear as to which commands to use i.e. ClickAndWait, WaitForTextPresent etc. It seems a little bit of a hack to try and get this to work.
Has anyone got selenium to correctly test this o...
Is it possible to get the values for a TestCaseAttribute from an external data source such as an Excel Spreadsheet, CSV file or Database? i.e. Have a .csv file with 1 row of data per test case and pass that data to NUnit one at a time.
Here's the specific situation that I'd like to use this for. I'm currently merging some features from ...
Hello,
I am trying to get data driven testing to work in C# with MSTest/Selenium.
Here is a sample of some of my code trying to set it up:
[TestClass]
public class NewTest
{
private ISelenium selenium;
private StringBuilder verificationErrors;
[DeploymentItem("GoogleTestData.xls")]
[DataSource("System.Data.OleDb",
"...
I am using the PHPUnit framework to write testcases for execution on the Selenium RC server. The PHP scripts and the selenium server are running in the same machine.
I have written some functions like reading of XML files, command like parameters, XLIFF integration etc by extending the PHPUnit_Extensions_SeleniumTestCase class.
But the p...
If I have a Selenium test which is currently logged in (with HTTP Authentication) to a particular website, how can I cause the remote browser to forget the current authentication so that I can log in as a different user (while remaining within the same test)?
...
I have a browser which takes certain parameters as options as shown below.
testbrowser.exe -id=test -url=http://www.google.com/.
Below is my selenium code.
selenium = new DefaultSelenium("localhost", 4444, "*custom "+testBrowser+" -id=test -url=", "http://www.google.com/");
selenium.start();
selenium.open("http://www.yahoo.com");
W...
Is there a way in Selenium RC to get the id from the xpath?
If I have the xpath
/html/body/div/div//input
I want to get the id of all the nodes associated to the xpath
...
Hi,
what are the advantages / disadvantages of simplium vs. selenium4junit vs. plain JUnit to run JUnit tests with Selenium RC?
Thanks!
...
Tried Bromine for Test Management with Selenium Scripts. After successful Configuration i tried to run my scripts it shows
Error as Windows Cannot find 'php'.Make sure you typed the name correctly and then try again.To search for a file, Click the start button, and then search.
But i have php in my local machine and running my php cod...
I'm trying to get the first href attribute in a page using Selenium RC (in Python):
sel.get_text("xpath=//@href")
this returns an empty string.
However, an identical xpath on the same page inside Firefox (using the "View XPath" extension) yields the correct value.
I've tried fiddling with it, but the same happens for other attribute...
I'm currently resorting to first doing a get_xpath_count, and then creating a loop incrementing an index variable, which in turn I inject back into the original xpath to select the nth result... very awkward no doubt.
Is there some simple, direct, elegant way to iterate directly over the xpath results?
Thanks!
...
I know that normally you can login to sites that require HTTP basic authentication with Selenium by passing the username and password in the URL, e.g.:
selenium.open("http://myusername:[email protected]/mypath");
I've been running a Selenium test with Firefox 2 or 3 and there I still get the "Authentication Required" dialog...
I am looking at the website. Trying to transfer selenium html to junit but could not get it to work because it keeps saying Error: Element not found. Maybe syntax error because I was able to break it down to the shortest path in firebug but still could not get to compile..What do you do in this case ?
Enrollment
I use firebug Xpath to ...
I want to use selenium test to cover my rails project ! but i just find little documents on selenium test . I want someone to give me some documents for selenium test of all types !like website ,pdf ,text etc. you can sent them to my gmail [email protected] ,or write under the question. Thank you ,and best regards!
...
I have 20 labels in my page:
In [85]: sel.get_xpath_count("//label")
Out[85]: u'20'
And I can get the first one be default:
In [86]: sel.get_text("xpath=//label")
Out[86]: u'First label:'
But, unlike the xpath docs I've found, I'm getting an error trying to subscript the xpath to get to the second label's text:
In [87]: sel.get_te...