Answer the question
In order to leave comments, you need to log in
PHP+Selenium+RemoteWebDriver(FireFox) how to get Screenshot?
Good afternoon!
Given:
$host = 'http://localhost:4444/wd/hub'; // this is the default
$capabilities = array(WebDriverCapabilityType::BROWSER_NAME => WebDriverBrowserType::FIREFOX);
$driver = new RemoteWebDriver($host, $capabilities);
$driver->screenshot('/home/g*****/web/g*******/public_html/screen.jpg');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question