Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

could not connect to selenium rc server

View previous topic View next topic Go down

could not connect to selenium rc server

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

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: could not connect to selenium rc server

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

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: could not connect to selenium rc server

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

selftechy

Posts : 9
Join date : 2011-09-14
Location : Bangalore, India

http://www.selftechy.com

Back to top Go down

Re: could not connect to selenium rc server

Post by faramka on Thu Sep 15, 2011 2:44 pm

I had the same problem and using sleep() really help me to solve it. Thanks selftechy!

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: could not connect to selenium rc server

Post by Sponsored content


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