facebook-php-webdriver

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

安稳与你 提交于 2020-03-03 09:27:12
问题 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 error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"w3c":false,"binary":"","args":["--no-sandbox","--headless","--disable-gpu"]}}} Operation timed out after 51627

Dropzone.js : Upload file without Browse dialog in php-webdriver integration tests

爱⌒轻易说出口 提交于 2020-01-20 08:41:25
问题 i am using dropzone.js in my project , what i want to do is add file manually to queue without opening the file browser dialogue, the dropzone is already initialized on the element with class .imageDropzone on the page and i am trying to run the following script to add the file , Dropzone.autoDiscover=false; var myZone=Dropzone.forElement('.imageDropzone'); var fileList=$("input[accept='image/jpg,image/gif,image/png,image/jpeg']")[0].files; fileList.name="imageUploadTestJPG.jpg"; fileList

Disable image loading with PHP Selenium

老子叫甜甜 提交于 2019-12-13 20:25:03
问题 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( "service_args=['--load-images=no']" )); $caps = DesiredCapabilities::chrome(); $caps->setCapability(ChromeOptions::CAPABILITY, $options); $driver = RemoteWebDriver::create($host, $caps); 回答1: To disable, use the argument: --blink-settings=imagesEnabled=false $options->addArguments(array( '-

Execute javascript in Selenium with Facebook PHP WebDriver

◇◆丶佛笑我妖孽 提交于 2019-12-11 06:56:23
问题 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 + label'); $this->driver->executeScript("alert('Hi');"); The documentation uses $session , and says higher up the page that this is shorthand, but doesn't explain anywhere at all what $session actually contains or how to assign it. 回答1: The wiki on GitHub is not up-to-date with

Dropzone.js : Upload file without Browse dialog in php-webdriver integration tests

淺唱寂寞╮ 提交于 2019-11-29 18:14:45
i am using dropzone.js in my project , what i want to do is add file manually to queue without opening the file browser dialogue, the dropzone is already initialized on the element with class .imageDropzone on the page and i am trying to run the following script to add the file , Dropzone.autoDiscover=false; var myZone=Dropzone.forElement('.imageDropzone'); var fileList=$("input[accept='image/jpg,image/gif,image/png,image/jpeg']")[0].files; fileList.name="imageUploadTestJPG.jpg"; fileList.type="image/jpeg"; fileList.size=30170, fileList.path="http://mysite/img/imageUploadTestJPG.jpg"; fileList