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
Jenka156
Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia

could not connect to selenium rc server Empty could not connect to selenium rc server

Mon Sep 05, 2011 6:28 pm
hi! can somebody help me with this problem?
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).
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

could not connect to selenium rc server Empty Re: could not connect to selenium rc server

Tue Sep 13, 2011 6:52 pm

Hi,

try to use wait command supported by PHP language, If the default selenium command is not working.
avatar
selftechy
Posts : 9
Join date : 2011-09-14
Location : Bangalore, India
http://www.selftechy.com

could not connect to selenium rc server Empty Re: could not connect to selenium rc server

Wed Sep 14, 2011 6:57 pm
use sleep(waittime). This works fine. I have used this in one of the (Selenium+PHP+PHPUnit) framework I worked on.
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

could not connect to selenium rc server Empty Re: could not connect to selenium rc server

Thu Sep 15, 2011 2:44 pm
I had the same problem and using sleep() really help me to solve it. Thanks selftechy!
Sponsored content

could not connect to selenium rc server Empty Re: could not connect to selenium rc server

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