lucist
13 years agoOccasional Contributor
Unable to highlight and log a picture at the same time
Hello!
I am a beginner with TC and trying to create a VB script for highlighting an object (a button for example) from a web-page and log a picture of it (that will display the button as highlighted) at the same time.
I am running the following script but I get an error and don't know what I have made wrong :
Sub Find
Dim firefox, Result
Set firefox = Aliases.firefox.Page("http://www.google.ro/").Panel("searchform").Form("tsf").Panel(0).Panel(1).SubmitButton("btnK")
Set Result = Runner.CallObjectMethodAsync(firefox, "HighlightObject")
Log.Picture(firefox)
While Not Result.Completed
aqUtils.Delay 300
WEnd
End Sub
I am a beginner with TC and trying to create a VB script for highlighting an object (a button for example) from a web-page and log a picture of it (that will display the button as highlighted) at the same time.
I am running the following script but I get an error and don't know what I have made wrong :
Sub Find
Dim firefox, Result
Set firefox = Aliases.firefox.Page("http://www.google.ro/").Panel("searchform").Form("tsf").Panel(0).Panel(1).SubmitButton("btnK")
Set Result = Runner.CallObjectMethodAsync(firefox, "HighlightObject")
Log.Picture(firefox)
While Not Result.Completed
aqUtils.Delay 300
WEnd
End Sub