Failure to start session. Selenium running phantomjs webdriver and facebook's php bindings -


i have been looking web browser automation , have managed selenium server jar executable work facebook php bindings on laptop ability swap between chrome , phantomjs.

versions:

  • selenium: 3.0.1
  • phantomjs: 2.1

(example)

<?php namespace facebook\webdriver; use facebook\webdriver\remote\desiredcapabilities; use facebook\webdriver\remote\remotewebdriver; require_once('vendor/autoload.php'); $host = 'http://localhost:4444/wd/hub'; $capabilities = desiredcapabilities::phantomjs(); $driver = remotewebdriver::create($host, $capabilities, 5000); $driver->get('https://google.co.uk'); 

my next step move project onto remote box , integrate web applications, can source form information or trigger tasks in situations.

i began placing selenium.jar file /opt directory, , have lightly edited this init script run selenium standalone server , not hub.

i have installed phantomjs path.

whenever attempt run above example on web server, receive following message in selenium log:

could not start new session. possible causes invalid address of remote server or browser start-up failure. 

i'm bit confused because host address gave correct on laptop. can shed light onto can possibly going wrong? if have not provided enough information please let me know :)


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -