I'm trying to get our tried and tested Behat setup to work, but even though Selenium server is up and running, the browser window never opens when I run my script. It seems to be running headless (which it's not supposed to do) but when I check my output file then none of the steps have passed.
I've tried deleting everything and starting from scratch with a fresh pull, but nothing does the trick. Unfortunately I have no idea how I'm supposed to troubleshoot this particular problem so it seems like you guys are my last hope.
I'm guessing my setup would not be of much value since it's already working across multiple other machines but maybe someone has experienced a similar problem and might have a suggestion as to what the error might be. If you need anymore information then please let me know and I'll be happy to provide it.
I use the following when I start Selenium Server:
selenium-server-standalone-2.9.0.jar
chromedriver-2.24
InternetExplorerDriver server (64-bit) 2.53.1.0
Powershell script that I use to start Selenium Server:
Param (
[string] $FireFoxBinary
)
$SeleniumServerPath = (Split-Path -Parent $MyInvocation.MyCommand.Definition)
if (-not ([String]::IsNullOrEmpty($FireFoxBinary))) {
$WebDriverFireFoxBin ="""-Dwebdriver.firefox.bin=$FireFoxBinary"""
}
java -jar (Join-Path $SeleniumServerPath "selenium-server-standalone-2.9.0.jar") "-Dwebdriver.ie.driver=$(Join-Path $SeleniumServerPath IEDriverServer.exe)" "-Dwebdriver.chrome.driver=$(Join-Path $SeleniumServerPath chromedriver-2.24.exe)" $WebDriverFireFoxBin
Console output when starting Selenium server:
INFO: Launching a standalone server Setting system property webdriver.ie.driver to D:\Data\git_stuff\ebiz-test-automation\Framework\Selenium_server\selenium_2.9.0\IEDriverServer.exe Setting system property webdriver.chrome.driver to D:\Data\git_stuff\ebiz-test-automation\Framework\Selenium_server\selenium_2.9.0\chromedriver-2.24.exe 14:16:09.054 INFO - Java: Oracle Corporation 25.121-b13 14:16:09.070 INFO - OS: Windows 7 6.1 amd64 14:16:09.070 INFO - v2.9.0, with Core v2.9.0. Built from revision 14289 14:16:09.210 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub 14:16:09.210 INFO - Version Jetty/5.1.x 14:16:09.210 INFO - Started HttpContext[/selenium-server,/selenium-server] 14:16:09.382 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@7d4793a8 14:16:09.382 INFO - Started HttpContext[/wd,/wd] 14:16:09.382 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 14:16:09.382 INFO - Started HttpContext[/,/] 14:16:09.398 INFO - Started SocketListener on 0.0.0.0:4444 14:16:09.398 INFO - Started org.openqa.jetty.jetty.Server@5b6f7412