Questions tagged [facebook-php-webdriver]

35 questions
5
votes
2 answers

WebDriver Exception: Unable to find handler for (POST) /wd/hub/session

Google Chrome 79.0.3945.130 ChromeDriver 79.0.3945.36 selenium-server-4.0.0-alpha-4.jar Newest code from the php-webdriver GitHub as of 1/22/2020 I am starting the Selenium server in standalone mode on localhost using Xfvb as such: $ Xvfb :99…
4
votes
1 answer

This version of ChromeDriver has not been tested with Chrome version 75 error with Selenium ChromeDriver and Chrome through facebook/php-webdriver

I'm using selenium, chromedriver, facebook/php-webdriver But the server always hang after an error What could be the problem? selenium or php? here is the php error: Fatal error: Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl…
4
votes
4 answers

How do we check Twitter Bootstrap radio buttons using Laravel Dusk?

According to twitter bootstrap, this is how we do a radio:
3
votes
3 answers

How to add Options through Facebook/php-webdriver?

I'm seeking to add options to an instance of Facebook/php-webdriver. This works to get the initial options: $options = \Facebook\WebDriver\Remote\DesiredCapabilities::chrome(); Now I'd like to add additional…
3
votes
2 answers

Chrome web driver: Curl error thrown for http DELETE to /session/XXX

I using Chromedriver together with Facebook PHP webdriver. I often encounter with a session problems. Curl error thrown for http DELETE to /session/XXXX How resolve this problem? Why does it happen? Full error code: Operation timed out after 30001…
2
votes
1 answer

ChromeOptions aren't working - PHP WebDriver

I am trying to use Selenium with PHP. My code is: $this->options = new…
2
votes
1 answer

How to save images from local cache in WebDriver?

I download images from a webpage via WebDriver (Chrome) by // STEP 1 $driver->get($link); // STEP 2 $els=$driver->findElements(WebDriver\WebDriverBy::tagName('img')); foreach ($els as $el)…
Googlebot
  • 15,159
  • 44
  • 133
  • 229
2
votes
2 answers

Disable image loading with PHP Selenium

How do you disable image loading in ChromeOptions? (PHP library) I tried the following but not sure if syntax is correct $options = new ChromeOptions(); // disable images $options->addArguments(array( …
2
votes
1 answer

Codeception: how to test if an image is loaded?

I'm trying to do this $I->seeElement('DIV#security IMG.verisign'); to check if the images with the Verisign logo is loaded, but the test passes even if the image is not loaded (for a 404 if the file name of the source is wrong). What's the right…
realtebo
  • 23,922
  • 37
  • 112
  • 189
2
votes
2 answers

Execute javascript in Selenium with Facebook PHP WebDriver

I am trying to follow this documentation to execute a script, and all I am getting is an error saying the executeScript method is undefined. $this->driver->navigateTo('/'); $this->driver->clickElement('#member_opt_in +…
MattRogowski
  • 726
  • 2
  • 7
  • 22
1
vote
1 answer

Crash in webdriver / selenium (SessionNotCreatedExceptionMessage)

I'm using the standalome-chrome selenium docker image and connecting from another client via the Facebook WebDriver PHP SDK. In general that works fine. But in regular intervals, I receive the following error. If I'm waiting a few minutes everything…
1
vote
0 answers

php-webdriver webdriver Chrome dev tools protocol , how can i listen an event of devtools , it doesn't have listen command

I use php-webdriver for test automation on chrome, I want to listen to a chrome dev tools event, but the php-webdrvier does not a have a listen command, only execute, is there another way to listen to an event? I am interested in…
1
vote
0 answers

How to use RemoteWebDriver to launch Microsoft Edge in IE mode with IEDriver?

Q: Is possible to use RemoteWebDriver to launch Microsoft Edge in IE mode with IEDriver? I'm using php-webdriver-1.12 + phpunit-5 + selenium-server-4.1.2.jar + IEDriverServer_Win32_4.0.0 , is right? Currently im using ↓ to launch IE: $host =…
yrc
  • 11
  • 1
1
vote
2 answers

getLocationOnScreenOnceScrolledIntoView() is not working

in version php-webdriver 1.6 getLocationOnScreenOnceScrolledIntoView() is working fine, when currently I updated my version 1.8 it's giving me an error: FAILED: Exception occurred : unknown command: Cannot call non W3C standard command while in…
Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64
1
vote
4 answers

Uncaught Facebook\WebDriver\Exception\UnknownCommandException: POST ../element//click while clicking Google Search button using Selenium and IE 8

I'm having trouble with a click() function in my php code. It always throws this exception: Fatal error: Uncaught Facebook\WebDriver\Exception\UnknownCommandException: POST /session/f3cffab9-71ad-4e0a-baab-4a46d807ce3d/element//click I'm running…
1
2 3