Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Selenium RC stucks while running on window remote host

View previous topic View next topic Go down

Selenium RC stucks while running on window remote host

Post by monalisa on 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

monalisa

Posts : 6
Join date : 2010-07-09

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by metman on 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.

metman
Amateur
Amateur

Posts : 58
Join date : 2010-04-02

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by monalisa on 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.

monalisa

Posts : 6
Join date : 2010-07-09

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by metman on 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

metman
Amateur
Amateur

Posts : 58
Join date : 2010-04-02

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by monalisa on 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...

monalisa

Posts : 6
Join date : 2010-07-09

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by metman on Mon Jul 19, 2010 11:26 pm

So it is timing out at the first waitForPageToLoad(), right?

metman
Amateur
Amateur

Posts : 58
Join date : 2010-04-02

Back to top Go down

Re: Selenium RC stucks while running on window remote host

Post by Sponsored content Today at 11:58 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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