From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Overview - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
Overview
In this section, we're going to talk about something I like to call semantic sugar. If you look up the definition of semantics, you'll find that it's all about the meaning of things. And in this particular definition, it talks about the meanings of words and phrases in a particular context. And I think a very important part of test automation is that the test results file should be very meaningful and easy to understand. In short, that means that the results file should never be confusing. Anybody who runs the test should be able to understand what's being test. And also, if something fails, it should be extremely clear what failed relative to the page being tested and where we should go to fix it. So one great way we're going to do that is by refactoring our page object locators. We're going to move the locators from the keywords where they currently live up into the variable section at the top of the page object. And what that does is abstracts away the technical complexity of CSS…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.