Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
monalisa
Posts : 6
Join date : 2010-07-09

Selenium RC stucks while running on window remote host Empty 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
avatar
metman
Amateur
Amateur
Posts : 58
Join date : 2010-04-02

Selenium RC stucks while running on window remote host Empty 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.
avatar
monalisa
Posts : 6
Join date : 2010-07-09

Selenium RC stucks while running on window remote host Empty 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.
avatar
metman
Amateur
Amateur
Posts : 58
Join date : 2010-04-02

Selenium RC stucks while running on window remote host Empty 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. Smile
avatar
monalisa
Posts : 6
Join date : 2010-07-09

Selenium RC stucks while running on window remote host Empty 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...
avatar
metman
Amateur
Amateur
Posts : 58
Join date : 2010-04-02

Selenium RC stucks while running on window remote host Empty 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?
Sponsored content

Selenium RC stucks while running on window remote host Empty Re: Selenium RC stucks while running on window remote host

Back to top
Permissions in this forum:
You cannot reply to topics in this forum