If you take a look at automated web testsת you’ll be overwhelmed by locators (or selectors, or elements, or whatever framework you’re using). They are everywhere, and the tests find them and make use of them.

As they should.

It’s not surprising, because most of web automation is locating objects on the screen and operating them. And web pages got lots of those objects.

But let’s talk about the overwhelming part. I’m using an emotional word here, because as much as we want, we do experience feelings when we talk about, read, and explore code. The feelings can be anywhere on the range between “I can do whatever I want here, I’m Superman” to “I’m afraid everything will break if just touch my keyboard”.

The overwhelming feeling is related to the latter.

We can’t really escape using locators in our tests. But we can definitely do something about those feelings. We can write the tests differently. That’s what clean tests do.

In this recording, from the PractiTest webinar, I talk and show, what is clean code, and what are clean tests. How with a few changes. our tests can make us feel like Superman.

Enjoy! And check out the “Clean Tests” workshop.

Categories: Uncategorized

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *