selenium.common.exceptions.WebDriverException: Message: Error - Unable to load Atom 'find_element' from file 'undefined/third_party/webdriver-atoms/find_element.js'
Causes
It looks like the problem is in vendors/ghostdriver/webdriver_atoms.js at line 32:
var atomFileName = module.dirname + "/third_party/webdriver-atoms/" + atomName + ".js";
here, module.dirname is undefined when driver.find_element is executed.
if I hardcode the path it works perfectly. Anyone could take a look at how to solve that for everyone, avoiding full paths? I'd be happy to make a PR.
versions
Steps to reproduce the issue
Actual results:
selenium.common.exceptions.WebDriverException: Message: Error - Unable to load Atom 'find_element' from file 'undefined/third_party/webdriver-atoms/find_element.js'
Causes
It looks like the problem is in
vendors/ghostdriver/webdriver_atoms.js
at line 32:var atomFileName = module.dirname + "/third_party/webdriver-atoms/" + atomName + ".js";
here,
module.dirname
isundefined
whendriver.find_element
is executed.if I hardcode the path it works perfectly. Anyone could take a look at how to solve that for everyone, avoiding full paths? I'd be happy to make a PR.