It might help if you explained the path you traverse to get to this
window.  I for one am not familiar with it, so it's difficult for me
to tell you what to do to automate picking a certificate.. to start
with, is this a web UI, or native OS?   if it's a web page, can you
provide sample HTML please?

On Sep 30, 3:02 am, bala <[email protected]> wrote:
> Can some one tell how to how to reference the "certificateselection
> window" which is a list_box with RAutomation?  I tried something like
> this, but it returned no items.
>
> require "rautomation"
> require "watir-webdriver"
>
> b = Watir::Browser.new :ie
> b.goto(url)
>
> [...now the choose a digitalcertificate" window opens...]
> w = RAutomation::Window.new(:title => /digitalcertificate/i)
>
> [Now select acertificateby its name. To do that I need to get the
> handle of list box first, so that I can refer by items[]. I could not
> do it because I dont know what an id is...I tried several things like
> this ]
>
> lb = w.list_box(:id => "[what do i write here]")
> lb = w.list_box(:class => /ListBox/i)
> lb = w.list_box(:text => /CertificateList/i)
>
> Any help please?

-- 
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]

Reply via email to