Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I was having the save issue. I assume you made sure your java server was running before you started your python script? The java server can be downloaded from <a href="https://code.google.com/p/selenium/downloads/list" rel="nofollow">selenium's download list</a>.</p> <p>When I did a netstat to evaluate the open ports, i noticed that the java server wasn't running on the specific <code>"localhost"</code> host:</p> <p>When I started the server, I found that the port number was <strong>4444</strong> :</p> <pre><code>$ java -jar selenium-server-standalone-2.35.0.jar Sep 24, 2013 10:18:57 PM org.openqa.grid.selenium.GridLauncher main INFO: Launching a standalone server 22:19:03.393 INFO - Java: Apple Inc. 20.51-b01-456 22:19:03.394 INFO - OS: Mac OS X 10.8.5 x86_64 22:19:03.418 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d 22:19:03.681 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub 22:19:03.683 INFO - Version Jetty/5.1.x 22:19:03.683 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 22:19:03.685 INFO - Started HttpContext[/selenium-server,/selenium-server] 22:19:03.685 INFO - Started HttpContext[/,/] 22:19:03.755 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@21b64e6a 22:19:03.755 INFO - Started HttpContext[/wd,/wd] 22:19:03.765 INFO - Started SocketListener on 0.0.0.0:4444 </code></pre> <p>I was able to view my listening ports and their port numbers(the -n option) by running the following command in the terminal:</p> <pre><code>$netstat -an | egrep 'Proto|LISTEN' </code></pre> <p>This got me the following output</p> <pre><code>Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp46 0 0 *.4444 *.* LISTEN </code></pre> <p>I realized this may be a problem, because selenium's socket utils, found in: webdriver/common/utils.py are trying to connect via "localhost" or 127.0.0.1:</p> <pre><code>socket_.connect(("localhost", port)) </code></pre> <p>once I changed the "localhost" to '' (empty single quotes to represent all local addresses), it started working. So now, the previous line from utils.py looks like this:</p> <pre><code>socket_.connect(('', port)) </code></pre> <p>I am using MacOs and Firefox 22. The latest version of Firefox at the time of this post is 24, but I heard there are some security issues with the version that may block some of selenium's functionality (I have not verified this). Regardless, for this reason, I am using the older version of Firefox.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload