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 02-06-2009, 03:37 PM
kylepyro kylepyro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 28
Default Wait for Image Recognition

I'm trying to create a web automation and having to deal with the delays. I'm using a combination of Wait for Window and Delay but you never know exactly how fast a page is going to draw. I can just put in really long delays to ensure that a page is fully drawn but that will slow the task down substantially.

I see that you can wait for a screen but that is dependent on screen coordinates which will change from monitor to monitor and the postion of the window. I'd like to use a "Wait for Image Recognition" which doesn't exist. I could also "loop on condition until image recognised", another function that doesn't exist. I could loop on condition and set that condition with image recognition but all you can do in that command is click the recognised image.

So, what is the best way to recognise that a web page is fully drawn that doesn't depend on a static monitor/webpage scenario.

tia

Reply With Quote
  #2 (permalink)  
Old 02-07-2009, 02:15 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What you can do is, save the image of the screen that will load into a .bmp file. Now, inside loop, wait for a screen change, find the image using 'If Image Recognition' and if image is recognized then exit from loop.

The text format of your commands will look something like this:
1) Start Loop "5000" Times
2) Wait for Screen change (Wait up to 5 seconds - for Screen to change)
3) If Image from "- Microsoft Internet Explorer" Exists in "C:\Sample.jpg" with 100 percentage match Then
4) Exit Loop
5) End If
6) End Loop

In Wait for Screen change command select 'Relative To Window' option.

Hope that 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:13 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