Skip to content

Commit

Permalink
Merge pull request #12 from andretunes/patch-1
Browse files Browse the repository at this point in the history
Update signup.js
  • Loading branch information
transitive-bullshit authored Jan 6, 2021
2 parents 5ece8c4 + 18a3c17 commit b97dc19
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 b97dc19

Please sign in to comment.