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
Input.cordinatesLeak
Test file (self-contained)
package.json
{ "name": "testcase", "version": "1.0.0", "type": "module", "dependencies": { "patchright": "1.49.2" } }
index.js
import { chromium } from "patchright"; const test = async (path, args) => { const browser = await chromium.launch({ channel: "chromium", viewport: null, args, }); const context = await browser.newContext(); const page = await context.newPage(); await page.goto("https://kaliiiiiiiiii.github.io/brotector/"); await page.locator("#clickHere").click(); await page.screenshot({ path, fullPage: true }); await context.close(); await browser.close(); }; await test("with-user-agent.png", [ "--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36" + " (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36", ]); await test("without-user-agent.png", []);
Steps
npm install
node index.js
Expected
The script should pass Input.cordinatesLeak Brotector with or without the user-agent.
Actual
The script with the user-agent does not pass Input.cordinatesLeak Brotector.
The text was updated successfully, but these errors were encountered:
"--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36" + " (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
Overwriding the useragent is detectable and discouraged. The Input.cordinatesLeak does not have any direct correlation with this afaik.
Might be that overriding the UA changes the window size too. What you can try is setting it to Maximized.
Maximized
This issue will be resolved (only for Python yet) together with Kaliiiiiiiiii-Vinyzu/CDP-Patches#15
Python
Sorry, something went wrong.
No branches or pull requests
System info
Source code
Test file (self-contained)
package.json
index.js
Steps
npm install
node index.js
Expected
The script should pass
Input.cordinatesLeak
Brotector with or without the user-agent.Actual
The script with the user-agent does not pass
Input.cordinatesLeak
Brotector.The text was updated successfully, but these errors were encountered: