I wanted to dedicate this separate post to an example of the Selenium code that I wrote, because there are many tricks and gotchas that need your full attention.
That’s mainly around the use of
await of course. Instead of write a paragraph about each piece of the code, I have embedded my points in the code itself.
The sample simply goes to the Angular2 Github repository, and reports the title and date of the first page of open issues in the repository.
In case you wonder, here are the packages used above, in a single NPM install command
This doesn’t involve the build configuration to get this compiled and running.
Check out my other post to learn how to setup the build for this.
Finally, I hope those two articles combined help you write your own asynchronous code with ease, with Selenium or any other purpose.
How did I learn that?
As a bonus for coming here, I'm giving away a free newsletter for web developers that you can sign up for from here.
It's not an anything-and-everything link list. It's thoughtfully collected picks of articles and tools, that focus on Angular 2+, ASP.NET (4.x/MVC5 and Core), and other fullstack developer goodies.
Take it for a test ride, and you may unsubscribe any time.
You might also want to support me by checking these out [Thanks]: