schickling / chromeless

🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.
https://chromeless.netlify.com
MIT License
13.25k stars 575 forks source link

How can I open chrome with new session? #444

Closed GiantappMan closed 6 years ago

GiantappMan commented 6 years ago

Great works ,thank you guys to do this .

Is there any way can open Chrome with new process or session.

It always open the same chrome when I run below code repeatedly.

    const chromeless = new Chromeless()

    const screenshot = await chromeless
        .goto('https://www.google.com')
        .type('chromeless', 'input[name="q"]')
        .press(13)
        .wait('#resultStats')
        .screenshot()
Wolke commented 6 years ago

我怎麼記得會一直開新的?????

On Mon, Jun 4, 2018 at 11:18 PM, 代码抄写狮 notifications@github.com wrote:

Great works ,thank you guys to do this .

Is there any way can open Chrome with new process or session.

It always open the same chrome when I run below code repeatedly.

` const chromeless = new Chromeless({ launchChrome: true }, false)

const screenshot = await chromeless .goto('https://www.google.com') .type('chromeless', 'input[name="q"]') .press(13) .wait('#resultStats') .screenshot()`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prismagraphql/chromeless/issues/444, or mute the thread https://github.com/notifications/unsubscribe-auth/AAILmJEYZAX1gWH65J1rU3VL8kbNVuN3ks5t5U_dgaJpZM4UZSQS .

-- Tech. Adviser with carloan company. March 2018 Line API Expert. use node.js react typeScript AWS

Founder -- Wolke Lin wolkesau@gmail.com +886938831136

GiantappMan commented 6 years ago

我总是开同一个浏览器。 我希望打开不同的浏览器并且登陆不同的账号

GiantappMan commented 6 years ago

换库了