Hi,
I’am new to Ruby.Please help me to get this done.
After clicking on a button a popup dialog box appears on the
screen.Which is a login page having Username and Password text fields
and Ok button.I’am not able to get that dialog box and not able to set
text values.
#popup=ie.Dialog(“title:Login”).text().to_s
hwnd=ie.enabled_popup(5)
if(hwnd)
w=WinClicker.new
w.makeWindowActive(hwnd)
w.setTextBoxText(hwnd,“admin”)
w.clickWindowsButton_hwnd(hwnd,“Ok”)
end
end
you just need to change the path of shortName accordingly to point to
your clickJSDialog.rb file
good luck
Amruta wrote:
Hi,
I’am new to Ruby.Please help me to get this done.
After clicking on a button a popup dialog box appears on the
screen.Which is a login page having Username and Password text fields
and Ok button.I’am not able to get that dialog box and not able to set
text values.
#popup=ie.Dialog(“title:Login”).text().to_s
hwnd=ie.enabled_popup(5)
if(hwnd)
w=WinClicker.new
w.makeWindowActive(hwnd)
w.setTextBoxText(hwnd,“admin”)
w.clickWindowsButton_hwnd(hwnd,“Ok”)
end
end
Thanks in advance.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.