Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Testing Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Testing Anywhere Post messages and questions related to Testing Anywhere here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2010, 03:25 AM
cfereday cfereday is offline
Junior Member
 
Join Date: Jun 2010
Posts: 19
Smile Count the number of times a date is displayed within a web page.

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
Reply With Quote
  #2 (permalink)  
Old 07-06-2010, 01:19 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved