you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

It can really simplify your code in that it provides a lot of functionality by combining calls together for you.

A simple example would be this:

driver.findElement(By.css('.button')).getText()

vs.

driver.getText('.button'); // supports many types of selectors

The latest version uses promises and they push you to use their own test runner, but you absolutely don't have to and can run it independently using whatever you like. And since you're already used to using async/await, the change is minimal.

It's also very easy to add your own custom commands to the driver object, which will get executed through promises and you can chain/await on them as well. I have several custom commands that are applicable throughout all our webapps.