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
// In the following Promise.all the tails locator clicks
// on the tails button by using the locator's selector.
// Since clicking on each button causes page navigation,
// waitForNavigation is needed -- this is because the page
// won't be ready until the navigation completes.
// Setting up the waitForNavigation first before the click
// is important to avoid race conditions.
Promise.all([
page.waitForNavigation(),
tails.click(),
Promise.all concurrently runs the above promises so tails.click() can be written first before page.waitForNavigation().
However, I noticed if I pass in the slowMo option to chromium.launch(), the test fails with the following error depending on the value passed to slowMo.
ERRO[0030] communicating with browser: websocket: close 1006 (abnormal closure): unexpected EOF category=cdp elapsed="0 ms" goroutine=85
ERRO[0033] Uncaught (in promise) getting inner text of "//p[starts-with(text(),'Your bet: ')]": getting new document handle: getting document element handle: sending a message to browser: websocket: close 1006 (abnormal closure): unexpected EOF executor=per-vu-iterations scenario=default
If the value of slowMo is set to 100ms, the test passes but if it's >120ms, then the test fails with the above error. It seems that there is a race condition somewhere that we need to address.
The text was updated successfully, but these errors were encountered:
In one of our examples, we have:
Promise.all
concurrently runs the above promises sotails.click()
can be written first beforepage.waitForNavigation()
.However, I noticed if I pass in the
slowMo
option tochromium.launch()
, the test fails with the following error depending on the value passed toslowMo
.If the value of
slowMo
is set to100ms
, the test passes but if it's>120ms
, then the test fails with the above error. It seems that there is a race condition somewhere that we need to address.The text was updated successfully, but these errors were encountered: