Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WinButton
#1
Not Solved
I have a 3 WinButtons on a dialog box. My Object Rep has them correctly indicated and when recording all goes well.

But on Run, the Save button fails to depess. If I run two or sometimes 3 or 4 saves in a row, the Save button may finally trigger. But then my script fails on the next Save as there is no Save button anymore.

How can I inssure that I get this Save button to the trigger the first time?

I tried:
Code:
If Dialog("File Download_3").Dialog("Save As").GetROProperty("visible")=False Then
    Browser("Wisdom CTE").Dialog("File Download").Activate
    Browser("Wisdom CTE").Dialog("File Download").WinButton("Save").Click
End If

and

Code:
Do Until Dialog("File Download_3").Dialog("Save As").GetROProperty("visible")=True
    Browser("Wisdom CTE").Dialog("File Download").Activate
    Browser("Wisdom CTE").Dialog("File Download").WinButton("Save").Click
Loop

and

Code:
Do While Dialog("File Download_3").Dialog("Save As").GetROProperty("visible")=False
    Browser("Wisdom CTE").Dialog("File Download").Activate
    Browser("Wisdom CTE").Dialog("File Download").WinButton("Save").Click
Loop

but these still timed out.

I think I need to find a better code to use other than Click.

Lorena ;-)
Reply


Messages In This Thread
WinButton - by mv8167 - 05-04-2011, 11:28 PM
RE: WinButton - by supputuri - 05-05-2011, 01:40 AM
RE: WinButton - by mv8167 - 05-06-2011, 12:30 AM
RE: WinButton - by supputuri - 05-06-2011, 09:15 PM
RE: WinButton - by mv8167 - 05-06-2011, 09:23 PM
RE: WinButton - by supputuri - 05-06-2011, 09:55 PM
RE: WinButton - by mv8167 - 05-06-2011, 10:24 PM
RE: WinButton - by supputuri - 05-06-2011, 10:31 PM
RE: WinButton - by mv8167 - 05-06-2011, 11:46 PM
RE: WinButton - by atanu - 05-07-2011, 12:38 AM
RE: WinButton - by mv8167 - 05-07-2011, 01:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Winbutton slow in clicking kpat 0 2,120 05-23-2016, 12:09 PM
Last Post: kpat
  how to get background color of a WinButton javierchen 1 3,495 03-17-2015, 10:59 PM
Last Post: babu123
  Dialog winbutton OK problem in IE dutchyes 1 4,621 08-03-2010, 10:02 AM
Last Post: Saket
  WinButton Object not support run time object properties Akhila 1 5,435 06-03-2008, 04:07 AM
Last Post: Anshoo Arora

Forum Jump:


Users browsing this thread: 1 Guest(s)