Bewildr 0.1.7

Bewildr – the IronRuby based gem for automated testing of WPF apps – has been updated! We’re now up to v0.1.7. The main changes are:

  • Start exes with command line arguments (see last step of this file)
  • Navigate the object hierarchy using element.parent and element.children methods (see here)
  • Use “\n” in rich text boxes instead of the clumsy “{ENTER}” syntax (see here)

There have also been some changes in the background… elements now build themselves dynamically based on what patterns are supported by the underlying MS UI automation element. There’s still a bit of ugliness here, but it’s fast being stomped out.

gem update bewildr

What are you waiting for? Go get it!

4 thoughts on “Bewildr 0.1.7

  1. Thanks, a lot for these release.

    This helps a lot because I was missing the navigation operations. It would be also nice to include methods that would allow to navigate to siblings.

    In my case I was trying to create a convention for retrieving inputs based on text of labels that are previosu sibling of the input.

    I am also wondering if it is possible to create an extensibility point in bewilder that alows to add new types of custom controls. It looks like this requires also to create some extensions in UI automation toolkit. Am I right?

  2. Thanks for the suggestion. I was thinking about adding methods to allow access to siblings but didn’t think that it would be very useful. Clearly, I’m wrong about it not being useful – someone’s asking for it! I’ll put it on the to-do list.

    About the extensibility, I’ll give it some thought. What kind of custom object do you have in mind?

  3. My initial thought was to extend the available controls. An example would be the label(text) control that could have an additional method which would allow me to get the associated input. I saw in your code that you are extending the element objects in the include_additions method of the element class, so I thought that it would be great to have an option in bewilder to register custom classes that would be then used in the include_additions method to extend some element objects. Of course this is just a syntactic sugar and I can just call some custom methods that will have the same logic but they would be part of my step definitions in cucumber.

    But later on I thought that there can be some cases where I would like to interact with some custom controls that have some more facilities then the out of box available controls. Such an example could be some 3rd party controls like WPF Infragistic controls. Right now I don’t have any real example, but I think it will be not hard to find some examples.

    Additional if I could create custom control types then I could also search for them in the visual tree, which in my opinion would be a killer feature. But I think that this is something that needs to be extended also in the UI automation toolkit.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>