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

Function handleFile

javascript/selenium-webdriver/test/lib/webdriver_test.js:949–953  ·  view source on GitHub ↗
(d, path)

Source from the content-addressed store, hash-verified

947
948 let driver = executor.createDriver()
949 let handleFile = function (d, path) {
950 assert.strictEqual(driver, d)
951 assert.strictEqual(path, 'original/path')
952 return Promise.resolve('modified/path')
953 }
954 driver.setFileDetector({ handleFile })
955
956 return driver.findElement(By.id('foo')).sendKeys('original/', 'path')

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected