Hi ,
When I run the wait until or Waitfor Commands for a text image i.e (WaitFor 300 seconds,(Text:“Name:”, TextFont:“LucidaGrande”, TextSize:“10”,TextColor:(0,0,0),TextBackgroundColor:(232,232,232))
Or
Wait Until(Text:“Name:”, TextFont:“LucidaGrande”, TextSize:“10”,TextColor:(0,0,0),TextBackgroundColor:(232,232,232))
My script is not waiting till the text image appears on the screen , it throws an exception Hot Spot Off Screen For Image Exception
Log of the above script is
Sat, 18/10/08 11:07:49 AM START Running Selection from Create Miniteam.script
11:07:49 Start handler 1: create_miniteam
if AnyImageFound((Text:“File”, TextSize:“14”,TextFont:“LucidaGrande”, TextColor:(0,0,0),TextBackgroundColor:(232,232,232))) then
Sat, 18/10/08 11:07:50 AM anyimagefound Text: File found at (124, 10)
Click FoundImageLocation()
Sat, 18/10/08 11:07:50 AM click at (124, 10)
If ImageFound((Text:“Sign Out”, TextSize:“14”,TextFont:“LucidaGrande”, TextColor:(0,0,0),TextBackgroundColor:(232,232,232))) then
Sat, 18/10/08 11:07:50 AM imagefound Text: Sign Out found at (153, 204)
log"User Signed In "
Sat, 18/10/08 11:07:50 AM log User Signed In
If ImageFound((Text:“New”, TextSize:“14”,TextFont:“LucidaGrande”, TextColor:(0,0,0),TextBackgroundColor:(232,232,232))) then
Sat, 18/10/08 11:07:50 AM imagefound Text: New found at (139, 35)
Click FoundImageLocation()
Sat, 18/10/08 11:07:51 AM click at (139, 35)
If ImageFound((Text:“Miniteam…”, TextSize:“14”,TextFont:“LucidaGrande”, TextColor:(0,0,0),TextBackgroundColor:(232,232,232))) then
Sat, 18/10/08 11:07:51 AM imagefound Text: Miniteam… found at (430, 79)
Click FoundImageLocation()
Sat, 18/10/08 11:07:51 AM click at (430, 79)
WaitFor 300 seconds,(Text:“Name:”, TextFont:“LucidaGrande”, TextSize:“10”,TextColor:(0,0,0),TextBackgroundColor:(232,232,232))
Sat, 18/10/08 11:07:51 AM waitfor Text: Name: found at (943, 368)
Click (Text:“Name:”, TextFont:“LucidaGrande”, TextSize:“10”,TextColor:(0,0,0),TextBackgroundColor:(232,232,232),hotspot:(150,10))
Sat, 18/10/08 11:07:52 AM Exception Text: Name: Hot Spot Off Screen For Image “Text: Name:”
<<< 11:07:52 End handler 1: create_miniteam (aborted)
Selection Failed in 0:00:02 Hot Spot Off Screen click Error - Hot Spot Off Screen For Image “Text: Name:”
Please let me know how to make the script execution to wait until the text image appears on the screen.
Text Image is ---- (Text:“Name:”, TextFont:“LucidaGrande”, TextSize:“10”,TextColor:(0,0,0),TextBackgroundColor:(232,232,232))
Thanks In Advance.