If you install AutoIT it comes with a finder to identify the controls
in dialogs

Basic AutoIT sample
  ie.text_field(:id,'document_name').click # Open the popup
  myAutoIT = WIN32OLE.new("AutoitX3.Control")
  myAutoIT.WinWaitActive("File Upload","",15) # Set focus to the popup
  ##myAutoIT.ControlSetText("File Upload","",1148,sFileName)  # 1148
is the id found by the AutoIt Finder/Didnt work
  myAutoIT.Send("{ALT}n") # Move to the file name field in the popup
  myAutoIT.Send(sFileName) # Enter the Path and File Name
  myAutoIT.ControlClick("File Upload","","&Open")




On May 2, 4:36 pm, chaand <[email protected]> wrote:
> Hi,
>
> I am testing a web application using IE. I am a newbie for watir.
> There is an Popup window launched & I need to enter text into a text
> field and hit a button in that dialog . The Toolbar is not available
> for that popup window. hence not able to identify the elements on that
> window.
>
> Can anyone please share the ways to work on this scenario.
>
> Thank you.

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