Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Could not connect to the Selenium RC server" after some time of executing script
    text
    copied!<p>I have got a test case in my test class and some problems with it. I run the script from console. The <strong>script is executed to a certain point</strong> and then the test fails with error:</p> <pre>Could not connect to the Selenium RC server.</pre> <p>Here is log from console:</p> <pre> PHPUnit 3.5.15 by Sebastian Bergmann. E Time: 01:56, Memory: 4.00Mb There was 1 error: 1) someTest::testSomething PHPUnit_Framework_Exception: Could not connect to the Selenium RC server. /var/www/path.../someTest.php:105 FAILURES! Tests: 1, Assertions: 0, Errors: 1. </pre> <p>Line 105 in my test script:</p> <pre>$this->clickAndWait("//a[text()='Next']");</pre> <p>And here is Selenium log:</p> <pre> 14:00:40.983 INFO - Command request: click[//a[text()='Next'], ] on session 4222e17607254f41a6a52e13d0fd7cc5 14:00:41.205 INFO - Got result: OK on session 4222e17607254f41a6a52e13d0fd7cc5 14:00:41.207 INFO - Command request: waitForPageToLoad[600000000, ] on session 4222e17607254f41a6a52e13d0fd7cc5 14:02:11.328 INFO - Command request: testComplete[, ] on session 4222e17607254f41a6a52e13d0fd7cc5 14:02:11.328 INFO - Killing Firefox... 14:02:11.506 INFO - Got result: ERROR: Got a null result on session 4222e17607254f41a6a52e13d0fd7cc5 14:02:11.508 INFO - Got result: OK on session </pre> <p>I tried with Selenium Server Standalone 2.19.0, then with 2.20.0 - the same result.</p> <p>The server is still running, even after test interruption.</p> <p>My question is: <strong>why this error occurs suddenly and unexpectedly interrupts the script?</strong><br><br><br> PHPUnit 3.5.15<br> Selenium Server Standalone 2.19.0 &amp; 2.20.0<br> Firefox 3.6.18<br> Ubuntu 10.04<br></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload