Created
September 15, 2019 17:55
-
-
Save seleniumgists/e76da9233e6ec2ce73bfb915bd9d5d0a to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const edge = require("selenium-webdriver/edge"); | |
const options = new edge.Options(); | |
options.setPageLoadStrategy("eager"); | |
const driver = new edge.Driver(options); | |
``` | |
Error | |
``` | |
(node:66967) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'execute' of undefined | |
at Driver.execute (/Users/.../edge-webdriver/node_modules/selenium-webdriver/lib/webdriver.js:699:38) | |
at process._tickCallback (internal/process/next_tick.js:68:7) | |
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) | |
at startup (internal/bootstrap/node.js:283:19) | |
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) | |
(node:66967) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function | |
without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) | |
``` | |
3. `which msedgedriver` returns the following: | |
``` | |
~ » which msedgedriver | |
/usr/local/bin/msedgedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment