Selenium WorkBook #34: Client Membership (Multiple User Sign in and out)

Use reusable helper functions for a repeated common set of test steps.

Courtney Zhan
3 min readApr 14, 2024

--

This article is one of the “Selenium Training Workbook” series, a set of bite-sized exercises. While each exercise is independent, it may require knowledge and practices covered in previous episodes.

Learning Objectives

  • Multiple user log in and out.
  • Review: Extract to Function & Extract to Page refactoring
  • Review: Automate transformed web controls (the previous episode)

Test Design

  • The business user signs in
  • Go to its business setting page, set to member access only
  • The business user signs out
  • An existing customer signs in
  • Apply for the membership for one business
  • The customers signs out
  • The business user signs in (again)
  • Find the application for the membership
  • Approve it, e.g. setting the expiry date
  • The business signs out
  • The customer signs in (again)

--

--