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

Is there any way to set user agent? #90

Closed
rueyjye opened this issue Apr 12, 2018 · 1 comment
Closed

Is there any way to set user agent? #90

rueyjye opened this issue Apr 12, 2018 · 1 comment

Comments

@rueyjye
Copy link

rueyjye commented Apr 12, 2018

Hi ,
I am trying to open the browser by using user agent, is there any way to set user agent?

@rueyjye rueyjye changed the title Is there any way to set user agent Is there any way to set user agent? Apr 12, 2018
@rueyjye rueyjye closed this as completed Apr 12, 2018
@rueyjye
Copy link
Author

rueyjye commented Apr 12, 2018

resolved by using chrome flags

const browser = new HeadlessChrome({
    headless: false, 
    chrome: {
      flags: [
        '--user-agent=user agent'
      ]
    }
  })

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