could not connect to selenium rc server
Page 1 of 1 • Share •
could not connect to selenium rc server
hi! can somebody help me with this problem?
there is one page, which loading almost 3 minutes.
I set huge timeout in SetUp function:
and use such timeout when this page loading (waitForPageToLoad(600000)).
But it's doesn't help me. everytime, when loading time more than 45 sec, my test fail with error:
PHPUnit_Framework_Exception: Could not connect to the Selenium RC server.
(note: if loading time less than 45 sec there is no error and tests works)
I use Selenium RC 1.0 + phpUnit 3.5.14 + NetBeans IDE 6.9.1
I use selenium server separately from NetBeans (built-in server turns off).
there is one page, which loading almost 3 minutes.
I set huge timeout in SetUp function:
- Code:
function setUp() {
$this->setBrowser("*firefox");
$this->setBrowserUrl("http://beta.test.lan");
$this->setTimeout(600000); }
and use such timeout when this page loading (waitForPageToLoad(600000)).
But it's doesn't help me. everytime, when loading time more than 45 sec, my test fail with error:
PHPUnit_Framework_Exception: Could not connect to the Selenium RC server.
(note: if loading time less than 45 sec there is no error and tests works)
I use Selenium RC 1.0 + phpUnit 3.5.14 + NetBeans IDE 6.9.1
I use selenium server separately from NetBeans (built-in server turns off).
Jenka156- Posts: 8
Join date: 2011-08-29
Age: 23
Location: Russia
Re: could not connect to selenium rc server
Hi,
try to use wait command supported by PHP language, If the default selenium command is not working.
Re: could not connect to selenium rc server
use sleep(waittime). This works fine. I have used this in one of the (Selenium+PHP+PHPUnit) framework I worked on.
Re: could not connect to selenium rc server
I had the same problem and using sleep() really help me to solve it. Thanks selftechy!
faramka- Professional

- Posts: 143
Join date: 2011-09-15
Location: Poland
Similar topics» Nimbuzz Server
» Selenium server command options while starting server.
» How to hack selenium server to working with firefox latest version.
» Start Selenium server
» Selenium server launch only new browser windows but does not run the test.
» Selenium server command options while starting server.
» How to hack selenium server to working with firefox latest version.
» Start Selenium server
» Selenium server launch only new browser windows but does not run the test.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum

» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case