Skip to content

Commit

Permalink
Update signup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andretunes authored Jan 3, 2021
1 parent 5ece8c4 commit 18a3c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const random = require('random')

module.exports = async (browser, user, opts) => {
const page = await browser.newPage()
await page.goto('https://instagram.com/')
await page.goto('https://instagram.com/accounts/emailsignup/')

// basic information
// -----------------
Expand All @@ -29,7 +29,7 @@ module.exports = async (browser, user, opts) => {
await page.type('input[name=password]', user.password, { delay: 42 })

await delay(700)
const [ signup ] = await page.$x('//button[contains(.,"Sign up")]')
const [ signup ] = await page.$x('//button[@type="submit"]')
await Promise.all([
page.waitForNavigation(),
signup.click({ delay: 30 })
Expand Down

0 comments on commit 18a3c17

Please sign in to comment.