Forum Discussion
Thanks for the info.
For some of the custom controls iam using native properties and able to interact with.
My application is Delphi application and built using compiled with debug information.
Now iam facing different issue. We have some model popups displayed when we click on some controls. When the popup displayed my VBScript code looks like struck up and when i close the popup my code is returning to next statement. Is there any specific way to handle model popups.
Could you please help on this?
Hi,
You can try the making use of the sample code provided in the smartbear forum. Below is the sample vbscript coded taken from the forum
Sub Test
Dim p, w, ResObject
...
' Calls the method that displays a modal dialog
Set ResObject = Runner.CallObjectMethodAsync(p.VCLObject("MainForm")._
VCLObject("ADialog"), "Execute")
' Simulates user actions over the dialog and closes it
Set w = p.WaitWindow("*", " ADialogCaption ", -1, 1000)
If w.Exists Then
w.Window("Button", "*Ok*").ClickButton()
Else
Log.Message("The window was not found.")
End If
' Waits for the method completion
ResObject.WaitForCompletion(5000)
' Processes the result
If ResObject.Completed Then
Log.Message("Success, Return Value: " + CStr(ResObject.ReturnValue))
Else
Log.Message("Failure, Return Value: " + CStr(ResObject.ReturnValue))
End If
...
End Sub
- swapna-erram8 years agoOccasional Contributor
Thnks a lot for reply. it worked for me very well.
It is working for Click actions perfectly not pausing the playback. But we have some actions like Object.Checked =True.
How can we mention Checked Action in Runner.CallObjectMethodAsync method?
Thanks,
Swapna- HKosova8 years agoSmartBear Alumni (Retired)
swapna-erram wrote:But we have some actions like Object.Checked =True. How can we mention Checked Action in Runner.CallObjectMethodAsync method?
Properties typically do not need async assignment. But if needed you can use Runner.SetObjectPropertyAsync().
- swapna-erram8 years agoOccasional Contributor
Thanks Helen .. It worked for me
-Swapna
- tristaanogre8 years agoEsteemed Contributor
Checked is not an action, it's a property that you are setting to the value of "true". For that control, you should look to see if there is a "SetChecked" or "ClickChecked" method to be able to set the value.
Related Content
- 10 years ago
- 8 years ago
Recent Discussions
- 14 hours ago
- 7 days ago
- 10 days ago