Asynchronous Selenium: how to survive JS testing (Michael Bodnarchuk, Ukraine)

Опубликовано: 29 Октябрь 2024
на канале: Selenium Camp
1,585
18

JavaScript is a trending and one of the most popular language in the world. What makes it different from others? It’s asynchronous. This have its benefits for development but for testing it brings only downsides. Every single operatin in Selenium requires a promise, writing and hanling those promises can become complete disaster. What asynchronity is, how to write sane tests with it?

We will try to review approaches to managing async nature of JavaScript. We will also take a brief look into different Webdriver tools for JS (Selenium Webdriver JS, Protractor, webdriverio, Nightwatch, CucumberJS, CodeceptJS) and how they can be used for testing.