Intelligent Automation & Macro Software  

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

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2008, 03:01 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default multiple controls with the same name

I need to click on controls on a web page.

Unfortunately, the controls have the same name (a file name), but have different DATES associated with them in a part of the line that is not in the control.

How do I select among the various identical controls?

I want to click on the most recent copy of the FIN-201 report.

Thanks!
Phil

here is the text of the task:
1 Click on 'Daily_Suspended_Collections_Report_by_Responsible _Entity' link in the webpage 'CCSAS-CSE - Reports View List'
2 Delay: (500 ms)
3 Wait for Window to Open ("CCSAS-CSE - View Reports*") (Wait up to 3000 seconds - for Window to Open)
4 If Window Does Not Exists("CCSAS-CSE - View Reports*") Then
5 Message Box: "Download Cannot Find the Window to view the FIN201 CSV

$CallPhil$"
6 Stop The Current Task
7 End If
8 Delay: (500 ms)

--- here is the text from the page:


ID Title Parameters Date/Time Status Output


Records 1 - 20 next

COL-200 Suspended Collection Processing Aging Summary 03/04/2008 08:46 AM COMPLETED csv pdf
FIN-201 Daily_Suspended_Collections_Report_by_Responsible_ Entity 03/04/2008 12:00 AM COMPLETED csv pdf
COL-200 Suspended Collection Processing Aging Summary 03/03/2008 05:29 PM COMPLETED csv pdf
FIN-201 Daily_Suspended_Collections_Report_by_Responsible_ Entity 03/03/2008 12:00 AM COMPLETED csv pdf

Last edited by philkryder; 03-04-2008 at 04:16 PM.
Reply With Quote
  #2 (permalink)  
Old 03-04-2008, 11:14 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What we understand is, you want to click on a link that changes its location in webpage. Am I right?
Automation Anywhere Web Recorder offers advanced features so that your test cases will still work as intended even if your website changes.
In Manage Controls command of Web Recorder, there is an Advanced option for Links. It has three check boxes i.e. Name, URL, Index. To click on recent link you can use 'Index' option. This option will search the link by its location index. Every link in a web page has a location index. For e.g. if you clicked on a link whose index number was 2 and you always want to click on that link when the task runs no matter what the name or URL of that link is. In that case, you can keep only this option checked.

You can refer to following online sample for more information, http://www.tethyssolutions.com/T62.htm

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 03-05-2008, 10:07 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by forumsupport View Post
Hello,

What we understand is, you want to click on a link that changes its location in webpage. Am I right?
Automation Anywhere Web Recorder offers advanced features so that your test cases will still work as intended even if your website changes.
In Manage Controls command of Web Recorder, there is an Advanced option for Links. It has three check boxes i.e. Name, URL, Index. To click on recent link you can use 'Index' option. This option will search the link by its location index. Every link in a web page has a location index. For e.g. if you clicked on a link whose index number was 2 and you always want to click on that link when the task runs no matter what the name or URL of that link is. In that case, you can keep only this option checked.

You can refer to following online sample for more information, http://www.tethyssolutions.com/T62.htm

Hope that helps.
unfortunately, while the name remains constant, the location varies. Sometimes it will be the second file shown, sometimes the first, sometimes other locations...

Take a look at the list above from the web page
Reply With Quote
  #4 (permalink)  
Old 03-05-2008, 11:02 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

In that case, try selecting URL checkbox, it searches the link by the URL that is points to. For e.g. if you recorded a click on a link called 'Automation Anywhere 3.0' that points to http://www.tethyssolutions.com/automation-software.htm, and tomorrow if the link name changes to 'Automation Anywhere 4.0' but still points to the same URL then you can check this box.

Hope that helps.
Reply With Quote
  #5 (permalink)  
Old 03-05-2008, 12:36 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by forumsupport View Post
In that case, try selecting URL checkbox, it searches the link by the URL that is points to. For e.g. if you recorded a click on a link called 'Automation Anywhere 3.0' that points to http://www.tethyssolutions.com/automation-software.htm, and tomorrow if the link name changes to 'Automation Anywhere 4.0' but still points to the same URL then you can check this box.

Hope that helps.

Nope - the URL changes to reflect the fact it is a different file on a different date.


I need it to always select the first instance of the NAME.

It may be the second or 3rd or 4th control in the table.

Please take a look at the screen shots that I sent to sales.

thanks
Phil
Reply With Quote
  #6 (permalink)  
Old 03-07-2008, 11:05 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by philkryder View Post
Nope - the URL changes to reflect the fact it is a different file on a different date.


I need it to always select the first instance of the NAME.

It may be the second or 3rd or 4th control in the table.

Please take a look at the screen shots that I sent to sales.

thanks
Phil
any help for this?

The name stays the same, but it may appear multiple times on the page, in different locations and with different URLs. I need to always click on the first instance of the name.

Thanks
Phil
Reply With Quote
  #7 (permalink)  
Old 03-10-2008, 01:12 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What you can do is go to ‘Advanced’ option of Manage Web Controls command, by default ‘Name’ checkbox would be checked, you just have to uncheck that checkbox and check it again. Click on ‘Save’ button in ‘Advanced’ option also save the command. This will always click on the first occurrence of the name.

For your reference, we have attached sample task 'ForumPost.atmn'. Copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
Copy link_link.htm under C:\ and run the task. This task will always click on first instance of 'Link'. You can change the webpage layout (position of Link control) through notepad for testing.

Hope that helps.
Attached Files
File Type: zip Forum.zip (1.2 KB, 5 views)
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 07:33 AM.


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