alwex/php-casperjs

setViewPort not taking affect

Opened this issue · 1 comments

using setViewPort has no affect. i'm always returned mobile screen size results.

hey same problem here, the solution is you have to put
$casper->setViewPort(1366, 768) below the line of
$casper->start('https://www.google.com/')