We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heya,
first I wanted to thank you for this awesome package, it really helps a lot!
For a very specific use case I need to change the user agent of the local chrome browser during runtime. I found https://stackoverflow.com/questions/67077671/how-to-change-at-runtime-the-user-agent-of-a-remote-selenium-driver but I have no clue how to run execute (execute_cdp_command) in Laravel. Is there a way to achieve this?
execute_cdp_command
Thanks a lot for any help,
Pelle
The text was updated successfully, but these errors were encountered:
Update: There is a way in theory, e.g.
$browser->browser->driver->executeCustomCommand( '/session/:sessionId/goog/cdp/execute', 'POST', ['cmd' => 'Network.setUserAgentOverride', 'params' => ['userAgent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36']], );
In reality it does not work because $browser is protected in NunoMaduro\LaravelConsoleDusk\ConsoleBrowser :-(
$browser
protected
NunoMaduro\LaravelConsoleDusk\ConsoleBrowser
Sorry, something went wrong.
No branches or pull requests
Heya,
first I wanted to thank you for this awesome package, it really helps a lot!
For a very specific use case I need to change the user agent of the local chrome browser during runtime. I found https://stackoverflow.com/questions/67077671/how-to-change-at-runtime-the-user-agent-of-a-remote-selenium-driver but I have no clue how to run execute (
execute_cdp_command
) in Laravel. Is there a way to achieve this?Thanks a lot for any help,
Pelle
The text was updated successfully, but these errors were encountered: