![]() |
| |||||||
Testing Anywhere Post messages and questions related to Testing Anywhere here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hello, I am looking for a way to count the number of times a date is displayed within a web page. - The dates are displayed in an IE Table. - I have set the date I want to count as a variable ($Week_Commencing$) Please can you tell me how I can count the number of times $Week Commencing$ is displayed in the IE Table? Do I need to use the $counter$ system variable for this? If so, please can you provide me with an example of how this variable is used and how I can hold the result of the count as a variable? Thanks |
| |||
|
Hello, What you can do is, 1) Capture the IE table using Extract table command. 2) Create user variable say $TotalCount$. 3) Loop for each row in IE table. 4) Inside loop block, use 'If Variable' command to check Table Column(Index) is equal to $Week_Commencing$. 5) Inside If block increment $TotalCount$. $TotalCount$ - $TotalCount$ + 1 If you can provide URL of website we can create specific task for your convenience. Hope this helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |