"The target server failed to respond" when using IE webdriver

4,032 views
Skip to first unread message

carina0110

unread,
Dec 6, 2011, 11:34:34 AM12/6/11
to Selenium Users
(Using WebDriver/Java/Eclipse/IE webdriver. I'm a little more than a
beginner)

I have been testing an application using Firefox without any problems.
The client wants the test to be run in IE9. I'm trying to run a simple
test to see if I can open the web page using the
InternetExplorerDriver webdriver, but I get the following the message:

Dec 6, 2011 11:25:31 AM
org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught
when processing request: The target server failed to respond
Dec 6, 2011 11:25:31 AM
org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request

What am I missing?

BTW, I only installed Selenium Webdriver. Am I supposed to install
something else?

Thanks.

Simon Stewart

unread,
Dec 7, 2011, 5:58:46 AM12/7/11
to seleniu...@googlegroups.com
Does IE open at all? And are all your security domains set to the same setting in the IE preferences?

Simon


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


carina0110

unread,
Dec 18, 2011, 1:37:44 AM12/18/11
to Selenium Users
(Sorry I didn't respond before. I thought your reply would have
appeared in my email but I never saw it, and today I looked to see if
somebody had answered. )

Anyway. I got it to work...almost. I mean, IE opens the browser and
executes the small login test. However, the console always displays
this message:

"Dec 18, 2011 12:17:25 AM
org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing
request: Software caused connection abort: recv failed
Dec 18, 2011 12:17:25 AM


org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request"

Whatever that message means, it doesn't seem to be a problem to run
the test.

As for security domains settings, if you mean whether I have all the
'zones' set with the same security level, the answer is yes except the
'Restricted sites' which I can't change from "High" to "Medium - High"
as all the others. Also, all zones have Protected Mode enabled.

On Dec 6, 11:34 am, carina0110 <internet0...@hotmail.com> wrote:
> (Using WebDriver/Java/Eclipse/IE webdriver. I'm a little more than a
> beginner)
>
> I have been testing an application using Firefox without any problems.
> The client wants the test to be run in IE9. I'm trying to run a simple
> test to see if I can open the web page using the
> InternetExplorerDriver webdriver, but I get the following the message:
>
>  Dec 6, 2011 11:25:31 AM
> org.apache.http.impl.client.DefaultRequestDirector tryExecute
>  INFO: I/O exception (org.apache.http.NoHttpResponseException) caught

> when processing request: Thetargetserverfailed to respond

Braunbaer

unread,
Feb 1, 2012, 4:25:28 AM2/1/12
to Selenium Users
i wish you have told us how you fixed your initial problem
@carina0110 )- :
i have the some issue and hoped to find the answer.

arjun

unread,
Jun 14, 2012, 1:02:51 AM6/14/12
to seleniu...@googlegroups.com
Can u please let us know how u reeolved ur problem so that it can help us

Krishnan Mahadevan

unread,
Jul 27, 2012, 12:53:18 AM7/27/12
to seleniu...@googlegroups.com
Have you gone through the below ?



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Thu, Jul 26, 2012 at 11:11 PM, maheshwar <ms.r...@gmail.com> wrote:
Please help how you have solved?
Could please suggest how do I set path of webdriver.ie.driver for IE, chrome and Safari browsers. I have downloaded IEDriverServer.exe for IE and chromedriver.exe for Google chrome. 


Im getting this error message while running my scripts
The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://code.google.com/p/selenium/downloads/list

Please respond.

On Sunday, December 18, 2011 12:07:44 PM UTC+5:30, carina0110 wrote:
On Sunday, December 18, 2011 12:07:44 PM UTC+5:30, carina0110 wrote:
On Sunday, December 18, 2011 12:07:44 PM UTC+5:30, carina0110 wrote:

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/BiUFwn2kTVMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted
Message has been deleted

Peter Gale

unread,
Jul 27, 2012, 4:38:10 AM7/27/12
to Selenium Users
Bharath

Please start a new thread for a new issue.

Peter


Date: Fri, 27 Jul 2012 01:25:12 -0700
From: m.bha...@gmail.com
To: seleniu...@googlegroups.com
Subject: [selenium-users] Re: "The target server failed to respond" when using IE webdriver


Hi..I'm using selenium web driver to my test cases.In one of my test case i'm using chrome driver() instance..when i ran my test case i'm getting the error as shown below.




Code:
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.interactions.Actions;


public class Slider {

public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "D:\\Documents and Settings\\xbhm\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("http://"*****some url which contains drag and drop boxes***********");

driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
WebElement findElement = driver.findElement(By.className("caf-table-scrollbar"));
(new Actions(driver)).dragAndDropBy(findElement,1,0).build().perform();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.quit();
}
}
----------------------------------------------------------------------------------------------------------------------------------------------
I'm getting this error.........
Started ChromeDriver
port=8270
version=22.0.1203.0b
log=D:\CAFWorkSpace\WEBDRIVER\chromedriver.log
Jul 27, 2012 11:54:13 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
Jul 27, 2012 11:54:13 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: [GET, HEAD, DELETE]
Command duration or timeout: 16 milliseconds
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_31'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteTimeouts.pageLoadTimeout(RemoteWebDriver.java:636)
at Slider.main(Slider.java:26)
--------------------------------------------------------------------------------------------------------------------------
Any solution will be appreciated..

Bharath 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/xYCCSjrDIt8J.

m bharath

unread,
Jul 27, 2012, 4:46:56 AM7/27/12
to seleniu...@googlegroups.com
Ya sure peter

kamal

unread,
Aug 30, 2012, 11:10:40 AM8/30/12
to seleniu...@googlegroups.com
Hi Carina,

Could you please tell me how to set the "Zones" in the same level??

I am struck in to the problem..

thanks
Kamal..


On Sunday, December 18, 2011 12:07:44 PM UTC+5:30, carina0110 wrote:

Jim Evans

unread,
Aug 30, 2012, 12:26:05 PM8/30/12
to seleniu...@googlegroups.com
http://jimevansmusic.blogspot.com/2012/08/youre-doing-it-wrong-protected-mode-and.html. If you only care about setting the Protected Mode settings, scroll to the bottom of the post.
Reply all
Reply to author
Forward
0 new messages