Share
Go down
sivaaprasadpadhy
Posts : 1
Join date : 2018-12-07
Age : 24
https://tekslate.com/selenium-training

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)...

Code:
- My Project
    - bin
        - geckodriver.exe

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

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

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


Any help here is appreciated.

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