Jump to content
Sign in to follow this  

Access encapsulated object

Recommended Posts



I am trying to automate some .net applications.

I have a problem :

It seems that my text box are encapsulated in an other object.

The textbox doesn't have a defined name, so I can access it through its class name, which is not convenient at all. But it is encapsulated in an other object with a defined name (a clear one). Will I be able to access child object of my parent object (with the name) to enter a new value ?

Exemple :

For a login form, there are two fields, : Login and password.

For the login field, I can see the the AutoIT Windows Infothe following controls :

1 : WindowsForms10.window.b.app.0.33c0d9d named : txtIdentifier

1.1 : CLASS:WindowsForms10.EDIT.app.0.33c0d9d; INSTANCE:2 (without any name)

To enter the login value, actually, I have to use the class name of the subobject : CLASS:WindowsForms10.EDIT.app.0.33c0d9d; INSTANCE:2

I would like to be able to use the txtIdentifier name, and then find it's child, and enter the value.

I hope this is clear.

Thanks for your help

PS1 : Of course I tried to enter the value to the parent object, but I am not able to change it.

PS2 : I can't send the application !

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this