![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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. |
| |||
|
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. |
| |||
| Quote:
Take a look at the list above from the web page |
| |||
|
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. |
| |||
| Quote:
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 |
| |||
| Quote:
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 |
| |||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |