We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
can request cookies
1 parent 7a56a48 commit a6b06fbCopy full SHA for a6b06fb
javascript/selenium-webdriver/test/bidi/network_test.js
@@ -69,6 +69,7 @@ suite(
69
await driver.navigate().refresh()
70
71
assert.equal(beforeRequestEvent.request.method, 'GET')
72
+ await driver.wait(() => beforeRequestEvent.request.cookies.length > 0, 2000)
73
assert.equal(beforeRequestEvent.request.cookies[0].name, 'north')
74
assert.equal(beforeRequestEvent.request.cookies[0].value.value, 'biryani')
75
const url = beforeRequestEvent.request.url
@@ -80,6 +81,7 @@ suite(
80
81
})
82
83
84
+ await driver.wait(() => beforeRequestEvent.request.cookies.length > 1, 2000)
85
assert.equal(beforeRequestEvent.request.cookies[1].name, 'south')
86
assert.equal(beforeRequestEvent.request.cookies[1].value.value, 'dosa')
87
0 commit comments