Display results as :

Rechercher Advanced Search

Latest topics
» New! Appium Desktop
Today at 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» 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


The connection has timed out

View previous topic View next topic Go down

The connection has timed out

Post by sulee on Tue Mar 15, 2011 6:46 pm

Hi all,

I am using java client driver and eclipse java ee helios, my setup is complete to run selenese test cases.
In fact i connect to some sites, and i cannot connect to some sites. For instance the test below runs correctly:

import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class google extends SeleneseTestCase {
public void setUp() throws Exception {
//setUp("", "*chrome");
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "");
public void testUntitled() throws Exception {"/");


Whereas if change the base url to, I cannot connect and I got browser message as below:

The connection has timed out
The server at is taking too long to respond.

And the console error message is:

Got result: Timed out after 30000ms on session d359......

Could anyone tell me reason for that? Because i cannot test the we site i am suppose to do. Thanks in advance.

Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

Re: The connection has timed out

Post by Adviser on Thu Mar 17, 2011 8:08 pm


use custom wait command in java instead of using selenium command.

create one function which take parameter to wait up to how much seconds and used that every where you want to wait.

best of luck

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

Back to top Go down

Re: The connection has timed out

Post by gaurang033 on Sat Mar 19, 2011 8:04 pm

I am using following function...

public void waitUntilElementPresent(String xpath, int timpout){
int count=0;
Thread.sleep(1000); //wait for minute
if(60*count++ > timout)

Active particpant
Active particpant

Posts : 13
Join date : 2011-03-19

Back to top Go down

Re: The connection has timed out

Post by auto_ashish1 on Tue Apr 05, 2011 11:58 pm

You can add your own user-extension.js to change the default timeout of 30000 MS



For online Selenium training go to my website-

Active particpant
Active particpant

Posts : 21
Join date : 2011-03-10

Back to top Go down

Re: The connection has timed out

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