From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Refactoring page object locators - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
Refactoring page object locators
So here we are with our familiar amazon.com script, and I'm recording this a little bit into the future. So I want to point out a couple of changes from some of the previous videos. Once Robot Framework 3 came along, it forced us to use relative paths for our resources. So you'll notice I have the dot dot slash syntax there to indicate that we're using a relative path here for our resources. And also, if you scroll down, I tend to like to use the words "should be able to" in my test cases because whenever possible, test cases should reflect the business value that an end user or customer should get from the site. So I feel like I as a customer or a user of the site, should be able to do X. So I use those words a lot in my test cases. Sometimes I start the test case titles with "should be able to" like should be able to log in with valid credentials, or should not be able to log in with invalid credentials, or potentially should see error message when trying to log in with invalid…
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.