nbenitus
12 years agoContributor
Invalid variant operation
Hi,
I am doing a very basic operation, waiting for a button to be visible on screen. Here is my code:
Call installerMainWindow.btnFinish.WaitProperty("VisibleOnScreen", true, Project.Variables.long_timeout)
The long_timeout variable has been set to 10 minutes (600000).
When I run Delay(Project.Variables.long_timeout), it does wait for the full 10 minutes.
However, when I run the line entered earlier, it waits for around 1/10th of the time (around 1 minute), then, if the button is not found by that time, I get a runtime error: Invalid variant Operation.
I have no clues what it's going on. I have used the WaitProperty operation dozens of time in my project without problem.
Thanks in advance.
Benoit
I am doing a very basic operation, waiting for a button to be visible on screen. Here is my code:
Call installerMainWindow.btnFinish.WaitProperty("VisibleOnScreen", true, Project.Variables.long_timeout)
The long_timeout variable has been set to 10 minutes (600000).
When I run Delay(Project.Variables.long_timeout), it does wait for the full 10 minutes.
However, when I run the line entered earlier, it waits for around 1/10th of the time (around 1 minute), then, if the button is not found by that time, I get a runtime error: Invalid variant Operation.
I have no clues what it's going on. I have used the WaitProperty operation dozens of time in my project without problem.
Thanks in advance.
Benoit