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-21-2011, 04:20 PM
SBDT SBDT is online now
Junior Member
 
Join Date: Sep 2011
Posts: 4
Default Searching for a string on a webpage

Hello,

I want to be able to search for a string on a webpage and click on it after it is found.
Can anyone help?
Reply With Quote
  #2 (permalink)  
Old 09-21-2011, 05:12 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello SBDT,

You can search for the required string by using ctrl+f combination of keystroke in "Insert Keystroke" command where you can type the string that you want to search using "Insert Keystroke" command and then use ENTER keystroke which will work as a click on it.

The combination that follows the ctrl+f for searching while using the "Insert Keystroke" command is [CTRL DOWN]f[CTRL UP]

We have a attached a sample task which finds the string "click here" in Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. and then enters in it (using the ENTER keystroke)

You will have to save the task in "My Documents\Automation Anywhere\Automation Anywhere\My Tasks"

Thanks & Regards
Attached Files
File Type: atmn teststringsearch.atmn (9.7 KB, 6 views)
Reply With Quote
  #3 (permalink)  
Old 09-22-2011, 01:27 PM
SBDT SBDT is online now
Junior Member
 
Join Date: Sep 2011
Posts: 4
Default

Thank you! that works!
Reply With Quote
  #4 (permalink)  
Old 09-23-2011, 01:49 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

In your sample,
there are TWO TABs forward and one TAB back after the string is found.

how did you determine the number of forward and backward tabs?

Is it always two forward and one back?

Thanks
Phil

<< text of sample code follows >>

1 Open "www.automationanywhere.com"
2 Keystrokes: [CTRL DOWN]f[CTRL UP] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
3 Delay: (500 ms)
4 Keystrokes: click here in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
5 Delay: (500 ms)
6 Keystrokes: [TAB] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
7 Delay: (500 ms)
8 Keystrokes: [TAB] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
9 Delay: (500 ms)
10 Keystrokes: [SHIFT DOWN][TAB] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
11 Keystrokes: [SHIFT UP] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
12 Delay: (500 ms)
13 Keystrokes: [ENTER] in "Automation Anywhere - Leader in Automation Software, Automated Testing. Automate with ease. - Windows Internet Explorer"
Reply With Quote
  #5 (permalink)  
Old 09-23-2011, 02:10 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Phil,

The best practice is to test it out manually on the website and then prepare the task and we did the same. We tried it out manually and then prepared the task.

Thanks & Regards
Reply With Quote
  #6 (permalink)  
Old 10-03-2011, 12:57 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by forumstaff View Post
Hello Phil,

The best practice is to test it out manually on the website and then prepare the task and we did the same. We tried it out manually and then prepared the task.

Thanks & Regards

What do you do if the number of TAB controls VARIES depending on the data on the page?

Thanks
Phil

Last edited by philkryder; 10-03-2011 at 01:13 PM.
Reply With Quote
  #7 (permalink)  
Old 10-03-2011, 02:15 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Phil,

If you can insert a keystroke combination of "ctrl+f" in the webpage which will find the keyword and then type the keyword which is near to the text field that you want to make use of. You can hit the keystroke "Tab" after that which will take you to that control.

This is a logic which you can make use in case the TAB control varies from page to page.

Here, with this post, we have attached a sample task which finds the keyword "business intelligence" and then inserts "Tab" keystroke which takes the control to "Automated Testing" and enters in it.

Thanks & Regards
Attached Files
File Type: atmn findcontroltest.atmn (10.9 KB, 3 views)
Reply With Quote
  #8 (permalink)  
Old 12-09-2011, 06:58 AM
Dennis Dennis is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Default

I have encountered situations where tab will not take me to the control I want. It just skips over it. On the website I am speaking of, the control is highlighted.

Is a mouse click the only way to get it in those cases?

Next, is there some list of keystrokes which someone can share for getting around the page. In particular, sometimes it would be easier to go backwards rather than hitting tab 7 times to get to the tab I want. And other times there are drop downs, to negotiate.

Are there keystrokes which can open drop downs, go backwards, and get to those highlighted controls.

All of my questions revolve around the fact web recorder and manage window controls have not worked.

Thank you.
Reply With Quote
  #9 (permalink)  
Old 12-20-2011, 06:23 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

any answers for Dennis' questions?
Reply With Quote
  #10 (permalink)  
Old 12-29-2011, 07:43 AM
mtan11 mtan11 is offline
Junior Member
 
Join Date: Dec 2011
Location: United State
Posts: 1
Default Mark Tan

The answer of forumstaff is correct. To Dennis, I'm still searching the answer for you're question. I want to help when it comes in coding.
__________________
organic gardening supplies
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:14 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