#30: Client Sorting (Find multiple elements in Table)
Get cell text in a HTML table, Find multiple elements, and List Operations.
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
Prepare some client data
Perform a search
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)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 AgileWay’s Test Automation & Continuous Testing Blog to keep reading this post and get 7 days of free access to the full post archives.