First off, You Don't Know JS https://github.com/getify/You-Dont-Know-JS will be very valuable for picking up basic JS concepts.

A brief, no frills guide can be found here https://gist.github.com/samwize/8877226. I'd also recommend looking through Andrew Fowler's GitHub https://github.com/andrew-fowler as he has a lot of quickstarts for JS that can introduce you to the basics.

Other than that there are a few other things you might want to look into that are dependent on what your stack is. webdriverio http://webdriverio is a really popular tool for driving the browser for example, but you might not be using it. You get nicer-looking assertions with Chai http://chaijs.com/ but again you might not be using it.

Finally depending on what version of Node you are using you may be able to take advantage of https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes classes or https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function async functions that make things a lot easier for people not used to the language (makes JS behave like other languages used for automation). Alternatively, maybe you aren't so need to use something like https://babeljs.io/ Babel that will make the features available to you.

You're in luck in a way, because JS is (arguably) one of the most popular languages out there at the moment the Internet is chock full of guides and Stack Overflow answers about how to do pretty much anything.

https://seleniumguidebook.com/ The Selenium Guidebook is a premium option, but I wouldn't recommend it unless you're building a framework from scratch and want to use promises -- something I wouldn't bother with at all if you have the option to use async functions right away.

Reply · Report Post