leviwilson / mohawk

MIT License
14 stars 8 forks source link

WPF controls support #11

Closed arkadam02 closed 9 years ago

arkadam02 commented 9 years ago

Can I use this gem to test comples WPF applications. I am testing windows WPF complex application, where there are lot custom controls are used, will I be able use mohawk gem for automation of such application.

leviwilson commented 9 years ago

If you are able to inspect / modify with UISpy or other similar tools, it will work with this.

On 7:09pm, Mon, Apr 6, 2015 arkadam02 notifications@github.com wrote:

Can I use this gem to test comples WPF applications. I am testing windows WPF complex application, where there are lot custom controls are used, will I be able use mohawk gem for automation of such application.

— Reply to this email directly or view it on GitHub https://github.com/leviwilson/mohawk/issues/11.

arkadam02 commented 9 years ago

I set up my environment for Mohawk gem , but now I am running into an issue. I have password text box with Classname: PasswordBox , it does not have automation id or name. How to identify this element. are there any other properties I could use to identify such elements.

Thanks Aparna

leviwilson commented 9 years ago

You should be able to use class: 'PasswordBox' as the locator.

arkadam02 commented 9 years ago

Thanks for getting back to me. I tries with class:passwordBox a and still could not find password box element. I am putting here the password filed from xaml file, it is not of type Textbox

<c:SePasswordBox x:Name="passwordTextbox" Style="{StaticResource DarkSePasswordBox}" Grid.Column="1" Grid.Row="2" Margin="0,4,0,4" b:SelectAllOnTabFocus.Active="true" />

Please guide what should i use to identify this field.

Thanks Aparna

leviwilson commented 9 years ago

I wouldn't be able to tell you without the UISpy dump of the screen.

I'm going to close this issue unless there is something specific that is an issue with mohawk.

On 2:21pm, Thu, Apr 9, 2015 arkadam02 notifications@github.com wrote:

Thanks for getting back to me. I tries with class:passwordBox a and still could not find password box element. I am putting here the password filed from xaml file, it is not of type Textbox

b:SelectAllOnTabFocus.Active="true" />

Please guide what should i use to identify this field.

Thanks Aparna

— Reply to this email directly or view it on GitHub https://github.com/leviwilson/mohawk/issues/11#issuecomment-91317557.