Created
December 7, 2018 07:05
-
-
Save Lulzx/37a8fa1265b6864f0b1b8b2d54ab2057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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