minkphp / MinkSelenium2Driver

Selenium2 (webdriver) driver for Mink framework
MIT License
507 stars 163 forks source link

Add support for webdriver's Print Page #335

Closed marianomd closed 3 years ago

marianomd commented 3 years ago

It would be great if we could print the page to PDF.

php-webdriver has just implemented it

aik099 commented 3 years ago

How this could help in UI testing, which is the primary use case of Mink?

stof commented 3 years ago

Also, this is not something that fits in the Mink driver abstraction. So if you want to use that, you should access the Webdriver layer directly.

marianomd commented 3 years ago

@aik099 I'm not using it for the primary use case. Mink is a great tool for general browser automation too. @stof Thanks, I'll dig into that.

aik099 commented 3 years ago

@marianomd , I don't recall exact method names, but code similar to this should work:

$session->getDriver()->getWdSession()->print();