The Agile Way

The Agile Way

Share this post

The Agile Way
The Agile Way
#30: Client Sorting (Find multiple elements in Table)
Copy link
Facebook
Email
Notes
More
Selenium Training Workbook

#30: Client Sorting (Find multiple elements in Table)

Get cell text in a HTML table, Find multiple elements, and List Operations.

Courtney Zhan's avatar
Courtney Zhan
Mar 08, 2024
∙ Paid
1

Share this post

The Agile Way
The Agile Way
#30: Client Sorting (Find multiple elements in Table)
Copy link
Facebook
Email
Notes
More
Share

In the previous episode, we did a few client-searching tests. A related test will be sorting on the returned the results.

Learning Objectives

  • Get cell text in a HTML table

  • Review: Find multiple matching elements

  • List operations (in programming)

  • Assert a list

  • Review: Test data preparation

Test Design

  1. Prepare some client data

  2. Perform a search

  3. Click the sorting by email, wait a second or so, verify the client list is ordered.
    (Note: there are two sorting orders, ascending or descending)

  4. Do the same for sorting by name
    (Note: in this app, sorting by name means by last name)

Test Data (Login):

Site URL: https://whenwise.agileway.net
Login: driving@biz.com
Password: test01

Tasks

Task 1. Get cell text in an HTML table

A typical HTML table looks like below:

<table id="clients-table'>
 <tr>
  <td> cell 1-1 </td>
  <td> cell 1-2 </td>
 </tr>
 <tr>
  <td> cell 2-1 </td>
  <td> cell 2-2 </td>
 </tr>
</table>

<td> (table data) is also known as cell.

Keep reading with a 7-day free trial

Subscribe to The Agile Way to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Zhimin Zhan
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More