- monalisa
- Posts : 6
Join date : 2010-07-09
Selenium RC stucks while running on window remote host
Fri Jul 09, 2010 11:46 pm
Hello,
I am new to selenium RC,using with java eclipse.
Trying to run a simple script like google search operations on window remote host , while running the script on eclipse it stuck on the google page.After few sec raise raise time out error.
Please help me out to get a solution for this problem.
Monalisa
I am new to selenium RC,using with java eclipse.
Trying to run a simple script like google search operations on window remote host , while running the script on eclipse it stuck on the google page.After few sec raise raise time out error.
Please help me out to get a solution for this problem.
Monalisa
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: Selenium RC stucks while running on window remote host
Tue Jul 13, 2010 12:57 am
Need more information than that to make any useful comment. What command does it time out on? You might have something as simple as having a waitForPageToLoad in the wrong place.
- monalisa
- Posts : 6
Join date : 2010-07-09
Re: Selenium RC stucks while running on window remote host
Tue Jul 13, 2010 6:45 pm
Thanks for replay....
i was trying to run the below script in remote machine,it's stucking on google page but i am able to run it on local machine.
import com.thoughtworks.selenium.SeleneseTestCase;
import junit.framework.Test;
import junit.framework.TestSuite;
public class google extends SeleneseTestCase
{
//private SeleniumServer seleniumServer;
public void setUp()
throws Exception
{
{
setUp("http://www.google.com/", "*iexplore");
System.out.println("1.up to this is correct");
}
}
public void testSimpleThoughts()
throws Exception {
selenium.open("/");
if(selenium.isElementPresent("q"))
{
System.out.println("2.up to this is correct");
selenium.type("q", "selenium");
}
else
{
System.out.println("Element: q is not available on page.");
}
selenium.waitForPageToLoad("60000");
selenium.click("btnG");
selenium.waitForPageToLoad("60000");
selenium.click("link=Documentation");
selenium.waitForPageToLoad("60000");
selenium.click("link=Supported Browsers");
selenium.waitForPageToLoad("60000");
}
public static Test suite() {
return new TestSuite(google.class);
}
public static void main(String args[]) {
junit.textui.TestRunner.run(suite());
}
}
Please help me out,if any configuration i need to do for remote host.
i was trying to run the below script in remote machine,it's stucking on google page but i am able to run it on local machine.
import com.thoughtworks.selenium.SeleneseTestCase;
import junit.framework.Test;
import junit.framework.TestSuite;
public class google extends SeleneseTestCase
{
//private SeleniumServer seleniumServer;
public void setUp()
throws Exception
{
{
setUp("http://www.google.com/", "*iexplore");
System.out.println("1.up to this is correct");
}
}
public void testSimpleThoughts()
throws Exception {
selenium.open("/");
if(selenium.isElementPresent("q"))
{
System.out.println("2.up to this is correct");
selenium.type("q", "selenium");
}
else
{
System.out.println("Element: q is not available on page.");
}
selenium.waitForPageToLoad("60000");
selenium.click("btnG");
selenium.waitForPageToLoad("60000");
selenium.click("link=Documentation");
selenium.waitForPageToLoad("60000");
selenium.click("link=Supported Browsers");
selenium.waitForPageToLoad("60000");
}
public static Test suite() {
return new TestSuite(google.class);
}
public static void main(String args[]) {
junit.textui.TestRunner.run(suite());
}
}
Please help me out,if any configuration i need to do for remote host.
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: Selenium RC stucks while running on window remote host
Wed Jul 14, 2010 12:02 am
It may just be a matter of differeing load times locally and remote. I'd try moving that first waitForPageToLoad to the line directly after the open. From what I remember, the flag waitForPageToLoad is looking for is reset by any other Selenium command that is run. I'm thinking that there may be 2 page load events (since Google loads in the search box, then everything else), and what is happening is that on your local machine, the second load event does not complete till after you are done typing in to the search box, but on the remote machine, the load event completes before your logic checking for the search box does. No promises, but it is worth a shot.
- monalisa
- Posts : 6
Join date : 2010-07-09
Re: Selenium RC stucks while running on window remote host
Mon Jul 19, 2010 12:04 pm
thanks for quick response.......
i tried as per the mention but still getting the same,stuck on the google page...
i tried as per the mention but still getting the same,stuck on the google page...
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: Selenium RC stucks while running on window remote host
Mon Jul 19, 2010 11:26 pm
So it is timing out at the first waitForPageToLoad(), right?
- How to recognize the pop up window during running script
- [Help] Problem of running selenium Testcase[Java Junit] with Selenium RC
- In Selenium RC wat is the Need of Running Selenium Server On Custom port
- Problem of running SmartGWT Selenium Testcase with selenium RC
- What is the use of Selenium Remote Control - SELENIUM
Permissions in this forum:
You cannot reply to topics in this forum