Overloaded findChildCardinal

Hi

I have script that automise a lot of test on my software, eg. creating clients.

My problem is that the edit fields are build up vertically on the screen, and that the number of columns are depended on the screen with.

what happens is that on some platform the windows isn't maximized ( vista offcourse) and others they are.

When final builde have to locate the edit field it counts the number of edit fields horizontally from left to right. ex. .FindChildCardinal("Edit",15), but depended on the screen size my edit field isn't allways number 15.

I need to specify that FindChildCardinal should count the field vertically, eg. .FindChildCardinal("Edit",15,vertical) or .FindChildCardinalVertical("Edit",15)

I hope it is clear what my problem is.

With Kind Regards

Svend Høst

Hi Svend,

Thanks for posting. I understand your problem. I’m not sure if we’ll be able to offer a solution to it in the near future - although it looks like the GUI Automation API is counting left-to-right here, I’m fairly sure it’s actually counting based on how the application presents the list of edit fields to us.

I’m not sure exactly how to overcome this, although some ideas might be to click at a fixed point in the window instead of on a specific control, or to use Tab to move to the desired control (if the tab order makes more sense.) Also, being able to maximize the window should take care of this (did you end up trying that?)

The GUI Automation in FinalBuilder isn’t designed as a fully-fledged test runner, although (as you’ve discovered) it’s powerful enough to work in that way for some cases.

Nevertheless, I’ll add this to our to do list to implement in a future release.
Regards,

Angus

Hi Angus

Thank you for your reply. I have another wish, which is somewhat more important to me. I would like to be able to perform a mouse click or input text to a control given the window handle.

We have our delphi components and a framework to extract a window handle given the component.Name (Delphi).

We will write a action that can get the window handle and store it to a finalbuilder variable.

I would like you to make an action (or 2) that can send click or text given a window handle. I believe that your existing code could easily reused :-).

With kind regards
Svend