How to install and execute webdriver with PHP

508 views
Skip to first unread message

Eden Mae Ibit

unread,
Mar 30, 2017, 5:34:25 AM3/30/17
to Selenium Users
Hi,

I am really new to selenium. So now i'm trying to learn webdriver with php but nothing seems to work.

I've tried using the php bindings such as facebook/php-webdriver but it always show an error:
Fatal error: Uncaught exception 'Facebook\WebDriver\Exception\WebDriverCurlException' with message ' in C:\wamp\www\selenium\Test_1\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php on line 286
and
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}} Failed to connect to localhost port 4444: Timed out in C:\wamp\www\selenium\Test_1\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php on line 286

I've followed the instruction and installed the php-bindings and selenium server, the code I'm using is just from facebook/php-bindings. So I really don't know whats happening :(

I also tried other php-bindings but still I'm encountering errors :(

Please help,

Eden

David

unread,
Mar 30, 2017, 3:26:22 PM3/30/17
to Selenium Users
Maybe compatibility issue between PHP bindings and Selenium server version. Which server version are you running? Try running older versions of Selenium (e.g. not Selenium 3)
Reply all
Reply to author
Forward
0 new messages