Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 15, 2019 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/e76da9233e6ec2ce73bfb915bd9d5d0a to your computer and use it in GitHub Desktop.
Save seleniumgists/e76da9233e6ec2ce73bfb915bd9d5d0a to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
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