MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / checkError

Function checkError

javascript/selenium-webdriver/test/lib/webdriver_test.js:1614–1616  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1612 before(() => (driver = new FakeExecutor().createDriver()))
1613
1614 function checkError(e) {
1615 return e instanceof TypeError && /expected "(script|pageLoad|implicit)" to be a number/.test(e.message)
1616 }
1617
1618 it('script', function () {
1619 assert.throws(() => driver.manage().setTimeouts({ script: 'abc' }), checkError)

Callers

nothing calls this directly

Calls 1

testMethod · 0.45

Tested by

no test coverage detected