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 09-12-2011, 07:44 AM
EveryMerchant EveryMerchant is offline
Junior Member
 
Join Date: Aug 2011
Posts: 5
Default Variable as part of a caption

I need to figure out how to use a variable as part of a caption.
I have the variable being used as a search term but then I want to select the correct entry after the search returns. I tried adding * before and after the variable but that doesn't work.

Basically I search for "Tom" and it returns "Tom is great"
so when I use the manage website control I need it to select "Tom is great" but it's only looking for "Tom"

Please help.
Reply With Quote
  #2 (permalink)  
Old 09-12-2011, 04:49 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello EveryMercahnt,

You will have to use "String Operation" command with "Before-After" Operation type for extracting "Tom".

For example: By following the below steps you can extract "Tom" from the string "Tom is great"

Command: String Operation
Operation: Before-After
Source String: Tom is great
Before: (leave it blank)
After: (1 space, i.e. Hit the spacebar key once)
Assign the output to any variable and use message box with this variable to display the result. After running the task, the message box will display "Tom"

Let us know if you have any doubts.

Thanks & Regards
Reply With Quote
  #3 (permalink)  
Old 09-14-2011, 06:22 AM
EveryMerchant EveryMerchant is offline
Junior Member
 
Join Date: Aug 2011
Posts: 5
Default

I don't need to extract from a string.

I have "Tom" as a list type variable
I need to use "Tom" as a part of a caption for a web control.
I don't know ahead of time what the caption will read. I just need the program to select the first thing that has "Tom" in it's caption.
I hope that makes more sense.
Reply With Quote
  #4 (permalink)  
Old 09-14-2011, 12:41 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello EveryMerchant,

It will be really helpful if you can send us the task file so that we will be able to test it out at our end and will deliver you the proper solutions.

Thanks & Regards
Reply With Quote
  #5 (permalink)  
Old 09-19-2011, 06:27 AM
EveryMerchant EveryMerchant is offline
Junior Member
 
Join Date: Aug 2011
Posts: 5
Default

The task I have isn't complete.

I'm basically looking for a string modifier like if I was searching in windows for a .gif but couldn't remember what the file name was I could search for *.gif and it would return everything ending with ".gif" or if I searched for "bob*" it would return everything beginning with "bob"
Reply With Quote
  #6 (permalink)  
Old 09-19-2011, 04:16 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello EveryMerchant,

This can be easily done in Automation Anywhere.

Use Each file in a folder loop and use If condition with the system variable "extension"=gif

For example:

Start Loop " Each File in C:\aa"
If $Extension$ Equal To "gif" Then
End If
End Loop


But this will work only if all the files are in one folder.
For the file name which has "bob" in it, you can use the following:

Start Loop " Each File in C:\aa"
If $FileName$ Includes To "bob" Then
End If
End Loop


Thanks & Regards
Reply With Quote
  #7 (permalink)  
Old 09-21-2011, 09:46 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

They didn't understand that you were using the files as an example.

Send them the code you have -

better yet,
save it to a text file and paste it inline in your response.
Reply With Quote
  #8 (permalink)  
Old 09-21-2011, 04:48 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello phil & EveryMerchant,

Following is the text file of the task:

1 Start Loop " Each Folder in C:\aa"
2 If $Extension$ Equal To "gif" Then
3 Comment: Your Conditional Code..
4 End If
5 Comment: Second Condition `
6 If $FileName$ Includes "bob" Then
7 Comment: Your Conditional Code..
8 End If
9 End Loop

Thanks & Regards
Reply With Quote
  #9 (permalink)  
Old 09-21-2011, 08:19 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

I believe that
He doesn't need help parsing a string.

***He needs help finding and selecting a control with caption on a web page.***

Read the original question again.

He finds the control with "Tom is great"
but it looks like
he can't CLICK to activate it.


>>>
Basically I search for "Tom" and it returns "Tom is great"
so when I use the manage website control I need it to select "Tom is great" but it's only looking for "Tom" <<<


Phil
Reply With Quote
  #10 (permalink)  
Old 09-22-2011, 01:14 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello EveryMerchant,

According to Philkryder's reply, we will have to take a look at the website which is having this control so that we can guide you with proper solution.
Please send us the url of the website.

Thanks & Regards
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 04:00 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