Member-only story

20. WhenWise Login Tests

How to: click transformed controls, use XPath siblings to locate elements and a refactoring review

Courtney Zhan
5 min readJul 2, 2023

This article is a continuation of the Substack series: “Selenium Workbook”.

Learning Objectives

  • Click a Transformed Link
  • Use XPath Siblings to locate an element that is not easily identifiable.
  • Review Refactoring: Extract Function, Move to Helper, Move

Test Case #20

Typical user login test cases (login OK and login failed), design-wise, are the same as our session #4 (for the AgileTravel site).

Different from AgileTravel, WhenWise is a real app that people run their businesses on it. (Of course, we are only testing against its test server instance).

In other words, from this session, you will put the knowledge and practices learned in the previous session against real-world test scenarios.

As expected, compared to AgileTravle, you will see some extra but common login elements on the WhenWise Login page, such as “Remember Me”. Please note we will not test the “remember me” business feature. Just focus on the basic login scenarios, but I will ask you to click the ‘remember me’ box.

--

--

No responses yet