Forum Discussion
- sanjay0288Frequent Contributor
Hi,
Your question is too generic. Can you specify which type of infragistic control you are not able to identify. Probably screenshot of the control along with the object properties and methods of the object spy in advanced mode might help.
If it is a custom infragistic control try the below mentioned steps:
Open Project's Object Mapping options and add the control class name to the corresponding child(subgroup) of the infragistics control group.
For the list of supported controls and recognizing custom controls please refer to the link below
- tristaanogreEsteemed Contributor
It will also help to know what kind of control it is that you are trying to capture. For example, if the parent control is a grid, what kind of grid is it? AS sanjay0288, it would help us help you if we know a bit more about the control you are working with and whether or not it is in the list of supported controls.
- swapna-erramOccasional Contributor
- swapna-erramOccasional ContributorHi,
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?- tristaanogreEsteemed Contributor
Generally speaking, read the following help topic:
https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/modal-windows.html
More specifically, if you know that such windows are coming up and expected, you can trigger them asynchronously using the method described here
- sanjay0288Frequent Contributor
Ah, I missed out checking tristaanogre reply. The link provided by tristaanogre should solve your problem :)
- sanjay0288Frequent Contributor
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-erramOccasional 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
Related Content
- 3 years ago
- 10 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 10 days ago