Note that there are some explanatory texts on larger screens.

plurals
  1. POChromeDriver blocks and does not fail after unexpected Alert box
    primarykey
    data
    text
    <p>I am running selenium-server-standalone-2.17.0 (for IE and Firefox) and ChromeDriver 18.0.1022.0 (standalone) on a test box (Windows 7 64bit) which I use to run Java selenium tests against.</p> <p>For some reason, when running my tests against ChromeDriver, the first time it encounters an unexpected Alert box, it blocks idefinitely and the ChromeDriver log says </p> <pre><code>WARNING: Executing: executeScript </code></pre> <p>I configured ChromeDriver using the guide <a href="http://code.google.com/p/selenium/wiki/ChromeDriver" rel="nofollow">http://code.google.com/p/selenium/wiki/ChromeDriver</a> and set the timeout of all the drivers with </p> <pre><code>webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS); </code></pre> <p><strong>Update:</strong> I figured out how to initialize the remote ChromeDriver in a clean way with </p> <pre><code>URL url = new URL("http://192.168.1.15:4444/wd/hub"); DesiredCapabilities capabilities = DesiredCapabilities.chrome(); Webdriver chromeDriver = new RemoteWebDriver(url, capabilities); </code></pre> <p>this ran best with the URL pointing to a selenium-server running chromedriver in a child process. You can make selenium-server run the ChromeDriver by starting it like this: </p> <pre><code>java -jar C:\selenium-server.jar -Dwebdriver.chrome.driver=C:\path\to\chromedriver.exe </code></pre> <p>I still have the same problem with Chrome getting stuck at the unexpected Alert box, but the selenium log gave me at bit more info:</p> <pre><code>INFO - Done: /session/1328623219287/element/253/click INFO - Executing: [execute script: return !!document['readyState'];, []] at URL: /session/1328623219287/execute) </code></pre> <p>Still have no idea what is causing this... can anyone help?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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