Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Using selenium webdriver could not start IE9 #4113

Closed
lukeis opened this issue Mar 3, 2016 · 8 comments
Closed

Using selenium webdriver could not start IE9 #4113

lukeis opened this issue Mar 3, 2016 · 8 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 4113

Just install ruby 1.9.3 and latest watir-webdriver, selenium-webdriver 2.22.0
when I start the browser by using:
ie=Watir::Browser.new:ie

The error returns are as follows:
Started InternetExplorerDriver server (32-bit)
2.24.1.0
Listening on port 5555
Selenium::WebDriver::Error::WebDriverError: unexpected response, code=503, conte
nt-type="text/html"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859
-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,san
s-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://127.0.0.1:5555/session">http://127.0.0.1:5555/session</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Connection to 127.0.0.1 Failed
</STRONG>
</UL>

<P>
The system returned:
<PRE><I>    (111) Connection refused</I></PRE>

<P>
The remote host or network may be down.  Please try the request again.
<P>Your cache administrator is <A HREF="mailto:mgeddes@autonomy.com">mgeddes@aut
onomy.com</A>.
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/http/common.rb:66:in `create_response'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/http/default.rb:59:in `request'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/http/common.rb:40:in `call'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/bridge.rb:598:in `raw_execute'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/bridge.rb:92:in `create_session'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/remote/bridge.rb:68:in `initialize'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/ie/bridge.rb:43:in `initialize'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/common/driver.rb:35:in `new'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver/common/driver.rb:35:in `for'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.22.2/lib/s
elenium/webdriver.rb:65:in `for'
        from c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir
-webdriver/browser.rb:35:in `initialize'
        from (irb):3:in `new'
        from (irb):3
        from c:/Ruby193/bin/irb:12:in `<main>'

Tried manually connected to the http://127.0.0.1:5555 is ok. But I can't connect to
the http://127.0.0.1:5555/session.



Selenium version:2.22.2
OS:win server 2008
Browser:ie9
Browser version:ie9



Reported by jie.huang4%hp.com@gtempaccount.com on 2012-06-19 22:31:38

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2012-06-19 22:34:28

  • Labels added: Component-WebDriver, Lang-Ruby, Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Should it be moved to watir-webdriver issue tracker?

Reported by barancev on 2012-06-23 20:42:23

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

barancev: No, this belongs here.

Can you upgrade to the latest gem (2.24.0) and IEDriverServer.exe (2.24.1) and try
again?

Do you have a proxy configured on your system? The fact that WebDriver receives a response
with "Your cache administrator is <A HREF="mailto:mgeddes@autonomy.com">mgeddes@autonomy.com</A>."
seems to indicate a proxy between the Ruby client and the IE server.

Reported by jari.bakken on 2012-06-25 12:59:04

  • Status changed: NeedsClarification
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Yeah, you are right. I remove the proxy config on the system and it works now.

Reported by jie.huang4%hp.com@gtempaccount.com on 2012-06-25 14:39:46

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by jari.bakken on 2012-06-25 14:40:30

  • Status changed: WorkingAsIntended

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

@ jie.hua...@hp.com I am encountering the same problem. I am behind a proxy. Can you
tell me how you removed the proxy config on your system. I use ubuntu 12.04. Thanks
in advance !!!

Reported by murthy.polymath on 2012-09-27 09:35:54

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by jari.bakken on 2015-02-26 23:01:20

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:15:40

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant