how to wait request to be done before clicking on btn in puppeteer-sharp?
what I am trying to do is:
1.click on btn ( to make ajax request on website )
2.wait request to be done
3.click on submit btn
what I am doing now is:
1.click on btn ( to make ajax request on website ) await page.ClickAsync("#id")
2.wait for some time ( await page.WaitForTimeoutAsync(2000);
)
3.click on submit btn
this is the method I was looking for to wait for the request to be done:
await page.WaitForResponseAsync()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.