Skip to content
New issue

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

[Bug]: User Agent not obtainable: Page.evaluate: ReferenceError: opts is not defined #33529

Closed
wh1t3h47 opened this issue Nov 10, 2024 · 1 comment

Comments

@wh1t3h47
Copy link

Version

1.47.0

Steps to reproduce

  1. Launch chromium
  2. Run page.evaluate("navigator.userAgent")

Python Issue.

Expected behavior

I expect to get the user agent serialized as a string

Actual behavior

The playwright crashes

Additional context

I found this issue here as well:
davidteather/TikTok-Api#1172

Environment

playwright==1.47.0
Linux debian 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) x86_64 GNU/Linux
Model name:            Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Python 3.11.9
Using virtualenv
@wh1t3h47
Copy link
Author

This is associated with stealth plugin, I observed that disabling it, makes this work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant