Skip to content

Instantly share code, notes, and snippets.

@Lulzx
Created December 7, 2018 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lulzx/37a8fa1265b6864f0b1b8b2d54ab2057 to your computer and use it in GitHub Desktop.
Save Lulzx/37a8fa1265b6864f0b1b8b2d54ab2057 to your computer and use it in GitHub Desktop.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.waitForSelector('.main_wrapper > .form > #form1 > p > #username')
await page.click('.main_wrapper > .form > #form1 > p > #username')
await page.waitForSelector('.main_wrapper > .form > #form1 > p > #password')
await page.click('.main_wrapper > .form > #form1 > p > #password')
await page.waitForSelector('.main_wrapper > .form > #form1 > p > #instituteId')
await page.click('.main_wrapper > .form > #form1 > p > #instituteId')
await page.waitForSelector('.main_wrapper > .form > #form1 > .btn > .button_send')
await page.click('.main_wrapper > .form > #form1 > .btn > .button_send')
await page.waitForSelector('.main_wrapper > .form > #form1 > .btn > #imgSubmit')
await page.click('.main_wrapper > .form > #form1 > .btn > #imgSubmit')
await browser.close()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment