Skip to content

How to enable the web driver? #46

Description

@Zimaell

How to enable the web driver, I check for availability on this service
https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html
When using MTS, it shows that it is disabled ...
How can I turn it on?

This my code
require(ROOT.'/vendor/autoload.php'); $browserObj=\MTS\Factories::getDevices()->getLocalHost()->getBrowser('phantomjs'); $browserObj->setKeepalive(true); $browserObj->setDefaultExecutionTime(60000); $windowObj=$browserObj->getNewWindow(); $windowObj->setUserAgent('Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0'); $windowObj->setUrl('https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html'); $content=$windowObj->getDom(); $browserObj->terminate();

The ultimate goal is to make the request look like a real browser, and not be recognized as headless ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions