admc / wd

A node.js client for webdriver/selenium 2.
Other
1.53k stars 402 forks source link

Build browser scripts after install #461

Closed dpgraham closed 7 years ago

dpgraham commented 7 years ago

Because commands.js was importing scripts using dirname, this causes problems when you bundle 'wd' into an electron app because the dirname won't point to the correct directory. Solution is to write an npm script that's fired after install that takes the contents of the browser scripts and then builds them as files that export the Javascript as a string.

(@jlipps Can you have a look at this too)