Community
Participate
Working Groups
Build Identifier: 20110218-0911 com.thoughtworks.selenium.SeleniumException: Timed out after 10000ms at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:90) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:84) at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:619) at com.example.tests.Login.testLogin(Login.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Reproducible: Always Steps to Reproduce: 1.Create a simple project by recording through selenium IDE. 2. Export it to Groovy(JUNIT)script and copy it to Eclipse ide. 3. Include all the jar files and packages. 4. Execute the test. Code used for test is: package com.example.tests; import com.thoughtworks.selenium.*; public class Login extends SeleneseTestCase { Selenium selenium; public void setUp() throws Exception { selenium = new DefaultSelenium("localhost",4444,"*iexplore","http://www.google.co.in/"); selenium.start(); selenium.windowMaximize(); } /*private void setwaitForPageToLoad(int i) { // TODO Auto-generated method stub i = 90000; }*/ public void testLogin() throws Exception { selenium.open("/"); selenium.type("q", "selenium testing"); selenium.click("btnG"); selenium.waitForPageToLoad("10000"); selenium.click("link=Selenium web application testing system"); selenium.waitForPageToLoad("50000"); assertEquals(selenium.getTitle(), "Selenium web application testing system"); } }
*** Bug 347104 has been marked as a duplicate of this bug. ***
> com.thoughtworks.selenium.SeleniumException: Timed out after 10000ms This is a problem of Selenium, not Eclipse.