I am looking for a solution to handle the printer dialog using the facebook/php-webdriver.
I thought about using the WebDriverKeybord but it does not work.
$this->driver->getKeyboard()->sendKeys(WebDriverKeys::ESCAPE);
Print dialogue is not a part of the browser , so you can not use Selenium webdriver for it and has to be handles by some OS based automation software. You can use windows forms if u are running windows.
SendKeys.SendWait(@"{Enter}");