Struggling to make Selenium WebDriverJS work with the iOS browser, but unfortunately facing some issues.
I followed the instructions on setting up the "iWebDriver" project as mentioned on the iPhoneDriver wiki page. The Python script worked fine, and even a small nodeJS project ran smoothly. However, when attempting to run it from the browser, Firefox displayed the following error message:
Error: Unable to create a new client for this browser. The WebDriver session ID has not been defined.
Here is the code I'm trying to execute:
var driver = new webdriver.Builder().
usingServer('http://localhost:3001/wd/hub').
withCapabilities({'browserName': 'iPhone'}).
build();
driver.get('http://www.google.com');
driver.quit();
I have compiled webdriverjs as instructed on the WebDriverJs wiki page. And yes, webdriver.js is indeed loaded ;)