Comments (11)
@trnj, we have mouse move capabilities: https://secretagent.dev/docs/basic-interfaces/interactions
from secret-agent.
Hi @trnj,
Thanks for saying that! This is something we definitely need to do. I think we'll probably add an option to initialize a browser emulator with extra args. Or maybe we just need an ability to add --no-sandbox globally. Is that the only option you foresee needing?
from secret-agent.
Unable to lauch it on windows without --no-sandbox.
Currently, I use the following in Puppeteer.
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
'--window-size=1600,900',
'--start-maximized',
'--disable-web-security',
'--silent-debugger-extension-api',
'--allow-running-insecure-content',
'--disable-strict-mixed-content-checking',
'--ignore-certificate-errors',
Also, is it possible to take screenshots? Sometimes it is useful. Also, I need it for OCR.
And I would like to bypass multiple bot test like https://pixelscan.net/ https://bot.sannysoft.com
There are some problems like, when I change IP or proxy, I need to set correct timezone for the new IP in order to bypass bot tests. Would be great to have it out of the box.
const fetch = require('cross-fetch');
let info = await (await fetch('https://ipinfo.io/json')).json();
await page.emulateTimezone(info.timezone);
Also, I set webgl vendors.
Another important point is the correct Screen resolution and Available screen size (it should be smaller).
from secret-agent.
Excellent feedback, @trnj. Those features are definitely needed.
from secret-agent.
Another useful feature is mouse moves, key up, down, clicks. Puppeteer has a problem with clicks. If the element is hovered, or replaced by React frequently, then click does not work. Some bot protection services collect clicks, mouse moves.
from secret-agent.
@trnj, we have mouse move capabilities: https://secretagent.dev/docs/basic-interfaces/interactions
Thank you. Is it possible to click an element if it is hovered by another element?
from secret-agent.
@trnj Do you have a page or example with the react hover? Would love to add a unit test. For not being able to launch on Windows, what version are you using? Our CI is passing on Windows Server, and I've been able to launch on a Windows 10 VM fine.
from secret-agent.
Are you running your own custom chrome instance as well? Or the one packaged with the secret-agent chrome-83 emulator plugin?
from secret-agent.
I get the following.
ERROR UnhandledClientError {
clientError: Error: Failed to launch the browser process! spawn C:\Users\Home\AppData\Local\chromium-756035\win64-756035\chrome-win\chrome.exe ENOENT
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (C:\Users\Home2017\Dropbox\_current_projects\jobot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:193:20)
at ChildProcess.<anonymous> (C:\Users\Home2017\Dropbox\_current_projects\jobot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:185:85)
from secret-agent.
Also, tried and got blocked immediately.
For example,
https://www.expertflyer.com - distil, blocked
https://www.leboncoin.fr/ - another bot protection, but unable to open the website.
from secret-agent.
@trnj, we'll look into both of these issues and get back to you.
from secret-agent.
Related Issues (20)
- aws lambda support? HOT 5
- feature-request: provide interface for MITM Proxy HOT 5
- MITM Socket Server is spawned even if `SA_DISABLE_MITM` is used
- example for waiting for a form submit HOT 8
- failed to install `secret-agent` on Mac
- how to set proxy url and get raw html content HOT 6
- Certificate verification failed HOT 1
- EDIT: waitForFileChooser does not work when using userProfile with 2+ sessionStorage domains HOT 6
- feature request: support css string query in waitForElement HOT 4
- TypeError: Cannot read properties of null (reading 'type') HOT 3
- Fingerprint doesn't change HOT 4
- Chrome version updates? HOT 4
- no webgl support in headed mode, Windows VPS. HOT 4
- UnhandledErrorOrRejection
- Problem with cookieStorage and Twitter HOT 1
- SecretAgent is Moving to @ulixee/hero!
- Download path directory HOT 1
- Download path directory change HOT 1
- Clicking on a canvas inside an iframe HOT 6
- TimeoutError: Timeout waiting for child-tab-created
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secret-agent.