We are using Junit + Selenium to webtest our webpage. But we have run into a problem.
I need to parse the value from a hidden field with Selenium.
HTML of hidden field
<input type="hidden" name="secretId" value="123456"/>
I use the following XPath
//input[@name='secretId']/@value
I need to scrape that hidden variable and store it using...
I opened a page and am following a couple of links with the click() method.
$this->selenium->open("test.html");
$this->selenium->click("link=testlink1");
$this->selenium->waitForPageToLoad("10000");
$this->selenium->click("link=testlink2");
$this->selenium->getHtmlSource();
Now I want to get the HTML source of the current page that I...
I get the error message:
sel_<NUMBER> resultHolder sel_<NUMBER> unexpected response: OK,..
It seems that the server is stuck after this message occurs.
Why is this happening and how to solve/prevent it? I've never seen this message when the browserReuseSession is off. Have you?
...
It seems there is very few comparison between Selenium / WatiN and SimpleTest (which has web testing features too).
I tried Selenium and found the GUI great to create tests as you can see what's going on and record without typing all commands manually.
As for running the tests, Selenium is way more complex than SimpleTest. For SimpleTe...
selenium IDE gave me following xpath for string on page called "System". However this string may appear somewhere other than this place in future.
//ul[@id='idCTree_sor_ul']/li/ul/li[23]/span
how can I rewrite above xpath by spcifying text()="System" in xpath , so in future if index of that string is moved would not impact on my xpath...
I have a radio button that is the first column of many rows in an html table. The second column of each row is the corresponding text to each radio button. How can I select a specific radio button in column 1 if I am given a value that corresponds to column 2? For example, I have the word 'Dog' and I am trying to check/click the corre...
I'm executing selenium tests with testng, that are started on a remote system with Selenium RC via hudson (with ssh connection). The remote system is windows xp with MKS Toolkit installed, hence ssh. Tests are NOT executed as a windows service.
I've tried using both captureScreenshot and captureEntirePageScreenshot methods. The first...
Hi,
I'm running Selenium tests from within Eclipse, but I can't load a custom Firefox profile.
Most sources suggest I need to launch the Selenium Server like this:
java -jar selenium-server.jar -firefoxProfileTemplate </path/to/template/>
But when launching my test from within Eclipse it doesn't use that - the tests will run if the ...
I have a table that looks like the following:
<table class="theClass">
<tr>
<td class="anotherClass"><strong>Label1:</strong></td>
<td colspan="3">Value1a<br/>Value1b<br/>Value1c</td>
</tr>
<tr>
<td class="anotherClass"><strong>Label2:</strong></td>
<td colspan="3">Value2a<br/>Value2b<br/>Value2c</td>
</tr>
<tr>
<td cla...
I used following step-definition with cucumber and webrat and everything worked fine:
Then /^I should see "([^\"]*)" worker in the workerlist/ do |number|
response.should have_selector("td.worker_name", :count=>number)
end
I have moved now to selenium and "somehow" the have_selector doesn't take a :count parameter anymore. I get fo...
Hi.
For some time I have been investigating Selenium RC in order to do functional testing of my web application. I have now found a test strategy that is so effective, that I do not want to move away from Selenium RC (after spending weeks trying to figure out a good way to validate ASP.NET validation controls).
But now that my Selenium...
Can I in selenium get the HTTP status code?
E.g. so I can test that if the browser requests /user/27 and no user with ID=27 exists, an HTTP 404 is returned?
My primary interest is Selenium RC, but if someone knows the answer for "normal" selenium, I can probably easily translate it into RC.
/Pete
...
Hi all,
I am kinda new to HtmlUnit and am having some trouble getting a form to submit with HtmlImageInput.click(). When I call the method, nothing seems to happen, no form submission, no round trip to the server, or anything, as far as I can tell. The method returns immediately, returning the current page.
There's no Javascript event ...
I'm looking for a web application testing framework that is intented to be used by customers. That is, tests will be created by users, not programmers or testers. Thus, no scripting. It has to have some kind of IDE/GUI.
Selenium IDE is nice but too basic. The more or less suitable solutions I've found:
CubicTest. Seems to be very nice...
how to configure selenium rc?
how long it will take to configure?
how to work with selenium rc?
what are the pre-requisties for working selenium rc?
...
On exporting the test cases that prepared using IDE by junit format and using java platform, browser and selenium window closes on running the test case. If i want to track the test case result means how it will be done?
...
Hi
We are using JUnit+Selenium for functional testing of a web site in our project.
In several tests we need to download files from the website and compare it with a local resource.
We are using UrlResource to do this.
UrlResource actualResource = new UrlResource(URL);
compareUtil.isResourcesEquals(expectedResource, actualResouce);
...
Hi,
I am using Selenium to do some web testing. My code looks like this:
selenium = new DefaultSelenium("localhost", 80, "*firefox", "http://www.google.co.uk/firefox?client=firefox-a&rls=org.mozilla:en-GB:official"); ;
selenium.Start();
selenium.GetText("/html/body[@id='mozilla-com']/div[1]/div[2]/div[2]/h...
I'm writing some automated tests in C# and a JavaScript error is thrown when I try to click on a button that will submit changes made to a web form. The error I am recieving is:
An error has occured in the script on this page
Line: 2004
Char: 9
Error: Permission denied
Code: 0
URL: file:///C:/DOCUME~1/nkinney/LOCALS~1/Temp/c...
Is there a way to (easily) generate a HTML report that contains the tests results ? I am currently using JUnit in addition to Selenium for testing web apps UI.
PS: Given the project structure I am not supposed to use ANT :(
...