alwex / php-casperjs

simple PHP wrapper for CasperJS
MIT License
182 stars 71 forks source link

setViewPort not taking affect #56

Open scrapewww opened 6 years ago

scrapewww commented 6 years ago

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

nafplann commented 6 years ago

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/')