Ask a Question

WInForm objects Click()

SOLVED
vbarros
Occasional Contributor

WInForm objects Click()

Hi everyone,

 

I'm doing a test in desktop and I'm with the follow problem.

 

I identified the element that I   found to identify this element doesn't have Click() Methods available.

 

Is there other way to do a click or select this object?

 

somebody know how can I do this? I'm using the Python language.

 

Aliases.ServiceTool.FlyoutDialog.Tag.Commands.Item[0].OK

 

1 ACCEPTED SOLUTION

Accepted Solutions
mattb
Staff

Re: WInForm objects Click()

Hi,

Use the object spy and select the object. A good tutorial is here: https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/index.html 

Once you select the objects, click methods, and view more members to see the full available list of methods you can call on that object. 
I would expect a clickbutton or clickitem method to be present. 

If the object cannot be identified we can turn on enhancements to expose more properties... I will wait for your response, so we don't enable unnecessary settings. 

View solution in original post

3 REPLIES 3
mattb
Staff

Re: WInForm objects Click()

Hi,

Use the object spy and select the object. A good tutorial is here: https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/index.html 

Once you select the objects, click methods, and view more members to see the full available list of methods you can call on that object. 
I would expect a clickbutton or clickitem method to be present. 

If the object cannot be identified we can turn on enhancements to expose more properties... I will wait for your response, so we don't enable unnecessary settings. 

View solution in original post

vbarros
Occasional Contributor

Re: WInForm objects Click()

In this case to identify the unique object I have to extract many sub menu of object. 

 

for example: Sys.Process("ServiceTool").WinFormsObject("FlyoutDialog", "").Tag.Commands.Item[1].Result[OK]

 

But this property does not have a method click, then my question is if is there other way todo this?

mattb
Staff

Re: WInForm objects Click()

Hi,

Use the object spy to determine what method's that object has available to it. 

It seems like you have identified the object. Now we just need to know what method we can call since .click() is not working. 

Use the spy https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/index.html to select the object, and then click on the methods tab to see what is available. 

 
 

quick-search-o-p.png

 

 

cancel
Showing results for 
Search instead for 
Did you mean: