Go down
Posts : 1
Join date : 2018-12-07
Age : 24

Can I set the GeckoDriver path in selenium programatically when using node?

on Fri Dec 07, 2018 2:10 pm
I am trying to avoid using the path variable and would like to execute geckodriver from a local file.
For example I have this (Win64)...

- My Project
    - bin
        - geckodriver.exe

How can I tell mocha to use this bin file I am currently running mocha like this...

const {sync: globSync} = require("glob");

(async () => {
    await import("./Sanity.spec.mjs");
    await import("./site.spec.mjs");

Any help here is appreciated.

Siva Prasad
Back to top
Permissions in this forum:
You cannot reply to topics in this forum