Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

can't recorder the page what should be goto #37

Closed
helloCx opened this issue Jan 9, 2019 · 3 comments
Closed

can't recorder the page what should be goto #37

helloCx opened this issue Jan 9, 2019 · 3 comments
Milestone

Comments

@helloCx
Copy link

helloCx commented Jan 9, 2019

No description provided.

@helloCx helloCx changed the title cant can't recover the page what should be goto Jan 9, 2019
@helloCx helloCx changed the title can't recover the page what should be goto can't recorder the page what should be goto Jan 9, 2019
@helloCx
Copy link
Author

helloCx commented Jan 9, 2019

const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()

const navigationPromise = page.waitForNavigation()

await navigationPromise

await page.waitForSelector('div:nth-child(2) > .rc > .r > a > .LC20lb')
await page.click('div:nth-child(2) > .rc > .r > a > .LC20lb')

await navigationPromise

await page.waitForSelector('#head > #head_wrapper > #s_fm > #s_form_wrapper > #lg')
await page.click('#head > #head_wrapper > #s_fm > #s_form_wrapper > #lg')

await page.waitForSelector('#s_fm > #s_form_wrapper > #form > #s_kw_wrap > #kw')
await page.click('#s_fm > #s_form_wrapper > #form > #s_kw_wrap > #kw')

await page.waitForSelector('#s_fm > #s_form_wrapper > #form > #s_btn_wr > #su')
await page.click('#s_fm > #s_form_wrapper > #form > #s_btn_wr > #su')

await browser.close()
})()

this recorder don't have page.goto(). so the chrome open a blank page.
image

@tnolet
Copy link
Member

tnolet commented Jan 9, 2019

I can see the issue. Will hopefully fix in next release.

@tnolet tnolet added this to the v0.5.1 milestone Jan 22, 2019
@tnolet
Copy link
Member

tnolet commented Jan 22, 2019

fixed in v0.5.1

@tnolet tnolet closed this as completed Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants