Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ condition
Function
condition
javascript/selenium-webdriver/test/lib/webdriver_test.js:1044–1047 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1042
let
count = 0
1043
1044
function
condition() {
1045
count++
1046
return
true
1047
}
1048
1049
return
driver.wait(condition, 1).then(() => assert.strictEqual(1, count))
1050
})
Callers
3
driver
Function · 0.85
_wait_until
Method · 0.85
Until
Method · 0.85
Calls
2
reject
Function · 0.85
resolve
Function · 0.50
Tested by
1
driver
Function · 0.68