Looking at the RDoc for RAutomation, http://rubydoc.info/gems/rautomation/frames
I see it appears to inherit a list_box method from WinFFI, and the object returned by that method also supports things like listing the items, selecting something, etc. Looking at the issues on Git, I notice there is already a feature request for better listbox support (https://github.com/jarmo/ RAutomation/issues/12) so you might want to weigh in on that and indicate why you would find that feature handy. In the meantime it seems like you would need to use the methods from WinFFI to get the list of items (strings?) in the listbox, determine if the one you want is there and get it's index, and then select the item (by index?) You should be able to identify the window by its title, but unfortunately I'm not sure how you would identify the listbox. (I don't know the ffi code well enough to know what a valid identifier looks like, but if I was experimenting I'd presume it's a hash similar to watir, and given your window, with one listbox, I'd try using (:index => 0) as a hunch (or if it's very close to watir, you might be able to leave it off and have it default to index 0) See the basic 'useage' info here https://github.com/jarmo/RAutomation to get started with the window itself. Play around trying stuff in IRB just using what you'd expect to work for watir. First create a window object using the examples given in the basic usage stuff, then see if you can get a list of items in the list_box etc. Perhaps Jarmo or someone else could make some suggestions as to how you would go about finding and selecting an item from within a listbox, before clicking the OK button in that particular bit of UI. On Nov 11, 5:16 am, bala <[email protected]> wrote: > Chuck > > Any URL that implements a Certificate based authentication would show > up a windows with a list of certificates installed from the underlying > OS (let us say windows machine) to select from. A sample window can > be seen here > > http://demo.imcwv.com/doc/WSSRDdoc_files/image037.jpghttp://www.wurthnet.com/help/images/graphic/clientauthentication_en.jpg > > This is a native OS window (as for as I am aware) > > thanks in advance for trying > > cheers -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
