vendredi 6 novembre 2020

Selenium getWebDriver() vs. .class

I just started my first job out of college as a software Tester, and I've noticed when I'm looking through my companies code that I might see final name = new (getWebDriver());

or sometimes I see

final name = name.someAction.click(<page name.class);

I'm just wondering if this a standard way of doing things or if there is different situations where one is better over the other.

Aucun commentaire:

Enregistrer un commentaire