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

Stealth does not pass test #80

Closed
kaiserdj opened this issue Nov 28, 2019 · 4 comments
Closed

Stealth does not pass test #80

kaiserdj opened this issue Nov 28, 2019 · 4 comments
Labels
more-info-needed Further information is requested

Comments

@kaiserdj
Copy link

Using the example code and changing the url, for: this

Detect that it is headless

@berstend
Copy link
Owner

berstend commented Nov 28, 2019

@kaiserdj would you mind adding more details? this is github after all, not zendesk :)

@berstend berstend added the more-info-needed Further information is requested label Nov 28, 2019
@berstend
Copy link
Owner

E.g. you could check which test is failing (they use https://github.com/antoinevastel/fpscanner).

@kaiserdj
Copy link
Author

The code I use is the one that gives as an example. I have tried many tests but all give correct except this:

const puppeteer = require("puppeteer-extra")

const pluginStealth = require("puppeteer-extra-plugin-stealth")
puppeteer.use(pluginStealth())


puppeteer.launch({ headless: true }).then(async browser => {
  const page = await browser.newPage()
  await page.setViewport({ width: 800, height: 600 })
  await page.goto("https://arh.antoinevastel.com/bots/areyouheadless")
  await page.waitFor(5000)
  await page.screenshot({ path: "testresult.png", fullPage: true })
  await browser.close()
})

Result:
testresult

@berstend
Copy link
Owner

Ok thanks :) I'm busy rewriting the core to TypeScript currently (#21) but afterwards I want to cleanup and redo all stealth functionality.

I'm closing this in favor of #78 - make sure to follow that ticket to get notified once the stealth issues have been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants