I'm using Facebook's PHP Webdriver (Remote Web Driver) and I want to take a screenshot of the 'full page'.
I've tried executeScript and window.resizeTo(1000,1000) - no luck. I still get a very small window in my screenshot.
jbsmooves suggestion is working for Firefox if you load the correct library
use \Facebook\WebDriver\WebDriverWindow;
$this->webDriver->manage()->window()->maximize();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With