Jump to content

Problems with Control ID/ClassNameNN


Guest bburchfiel
 Share

Recommended Posts

Guest bburchfiel

I am a new AutoIt user, but an experienced programmer (and a frustrated one now! :) ) Hopefully someone can help.

I have written a VB.NET application and compiled it into an EXE. Now I want to automate the testing of that application on different machines using AutoIt.

On my first 2 machines, my script failed to run. It turns out that AU3INFO shows different Control IDs for the same field, and different ClassNameNNs as well. For example, a button that I need to click has the following properties on one machine:

Control ID: 4852174

ClassNameNN: WindowsForms10.BUTTON.app422

but the following on the other:

Control ID: 1377034

ClassNameNN: WindowsForms10.BUTTON.app622

Needless to say, this disconnect makes it difficult to call ControlClick.

This seems like a very basic problem, so hopefully I have just misconfigured something or made some other simple mistake. Please help me see the error of my ways!

Thanks,

Brian

Link to comment
Share on other sites

Guest bburchfiel

.Net Applications are not supported by ControlID. That is exactly what happens.

<{POST_SNAPBACK}>

This is not good news. What are my other options?

Is there some way to make AutoIt work for me on different machines (like loading the classnamenn values from an INI file)?

Or is there a better automation tool for vb.net?

Any help would be appreciated!

Brian

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...