GenLogin
  • Genlogin's Technology
  • Group profiles
    • Create profile
      • Overview
      • Network And WEBRTC
      • Location
      • Advanced settings
      • Cookies
    • Extensions
    • Local and Cloud profiles
    • Group profiles
    • Change owner profile
    • Share profile
    • Team-member
    • Email and password
    • Captcha service
    • Support center
  • Genlogin API
    • Profile API
      • 1. Profile list
      • 2. Create profile
      • 3. Run profile
      • 4. Stop profile
      • 5. Delete profile
    • Github Examples
  • Record automation
    • Overview
    • Puppeteer
    • Selenium
  • Automation guide
    • Overview
    • Running automation separately following profile group
  • ABOUT
    • FAQ
      • How to use Genlogin?
      • What operating systems does the software support?
      • Can I use my account on different computers at the same time?
      • How many accounts can I use in 1 computer?
      • How to pay for the invoice?
      • If I cannot pay on time, will I lose all my data?
      • How long will I wait prior to the activation of my subscription?
      • How to change the subscription plan?
Powered by GitBook
On this page
  • Install :
  • Example:
  1. Record automation

Puppeteer

Install :

npm install puppeteer

Example:

const Genlogin = require('./Genlogin');
const puppeteer = require('puppeteer');

(async () => {
    const genlogin = new Genlogin("");
    const profile = (await genlogin.getProfiles(0, 1)).profiles[0];
    const  {wsEndpoint} = await genlogin.runProfile(profile.id)

    const browser =await puppeteer.connect({
        browserWSEndpoint: wsEndpoint,
        ignoreHTTPSErrors: true,
        defaultViewport: false
    });


    const page = await browser.newPage();
    await page.goto('https://genlogin.com');

    // await browser.close(); 
})();

PreviousOverviewNextSelenium

Last updated 1 year ago

Page cover image
GitHub - hsxonz/lib_Genlogin_jsGitHub
Logo