You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use this library to automate my daily tasks, like giving a job id, go to a page find all the pallets of this job and process these pallets one by one. Or giving an asset id, I verify if all the processing data are valid for this asset, etc.
When I click a button, it may show out different content, or alert messages according to the data.
What's the proper way in playwright-go to process these situation?
What's the correct way to do this in playwright-go?
await page.goto(loadLink)
// if load id is valid, this PALLET DETAILS table will show out
const hdTable = "#ctl00_ctl00_LoadPallet"
// if load id is invalid, it will show warning window with this close button
const closeButton = "#ctl00_ctl00_LoadGridClose"
await Promise.race([
page.click(closeButton).then(() => false),
page.waitForSelector(hdTable).then(() => true)
]).then(value => {
if (!value) {
console.log("wrong load id: ", loadID)
return
}
})
Thanks
The text was updated successfully, but these errors were encountered:
I want to use this library to automate my daily tasks, like giving a job id, go to a page find all the pallets of this job and process these pallets one by one. Or giving an asset id, I verify if all the processing data are valid for this asset, etc.
When I click a button, it may show out different content, or alert messages according to the data.
What's the proper way in playwright-go to process these situation?
What's the correct way to do this in playwright-go?
Thanks
The text was updated successfully, but these errors were encountered: