Hello people,

I tried a few commands in an attempt to get more details about the objects in 
the modal dialog box.  

1.   Output of the command,

puts ie.modal_dialog.frame(:index,1).html

<HTML><HEAD><TITLE></TITLE><LINK href="../../styles/css_remote/styles.css" 
type=text/css  
rel=stylesheet></HEAD><BODY class=bodydialog><FORM id=Form1 name=Form1 
action=EmptyPage.aspx method=post><INPUT  
type=hidden value=dDwtNjU0MzcyMTk1Ozs+2C7FwmeFdeDCpDsFGmQL7wdu1oU= 
name=__VIEWSTATE> </FORM></BODY></HTML>

2.  output of the command,

puts ie.modal_dialog.frame(:index,1).show_all_objects

text/css          id=               
hidden            name=__VIEWSTATE    id=                  
value=dDwtNjU0MzcyMTk1Ozs+2C7FwmeFdeDCpDsFGmQL7wdu1oU=  alt=                
src=   

3.  Output of the command,

puts ie.modal_dialog.frame(:index,1).text

Blank

4.  Output of the command,

puts ie.modal_dialog.frame(:index,1),form(:id,'Form1').html

<FORM id=Form1 name=Form1 action=EmptyPage.aspx method=post><INPUT type=hidden  
value=dDwtNjU0MzcyMTk1Ozs+2C7FwmeFdeDCpDsFGmQL7wdu1oU= name=__VIEWSTATE> 
</FORM>    

5.  Output of the commands,

puts ie.modal_dialog.frame(:index,1).form(:id,'Form1').show_all_objects 
and
puts ie.modal_dialog.frame(:index,1).form(:index,1).show_all_objects


-----------Objects in page -------------
hidden            name=__VIEWSTATE    id=                  
value=dDwtNjU0MzcyMTk1Ozs+2C7FwmeFdeDCpDsFGmQL7wdu1oU=  alt=                
src=             

6.  Output of the command,

puts ie.modal_dialog.frame(:index,1).form(:index,2).html

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1145/./watir.rb:2297:in 
`assert_exists': Unable to locate object, using index and 2 
(Watir::Exception::UnknownObjectException)

7.  Output of the command,

puts ie.modal_dialog.frame(:index,1).form(:index,2).show_all_objects

-----------Objects in page -------------
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1145/./watir.rb:1013:in 
`show_all_objects': undefined method `all' for nil:NilClass (NoMethodError)

8.  Output of the command,

puts ie.modal_dialog.frame(:index,1).text 

Blank

I am not able to proceed anything beyond this.  I do not know how to get the 
properties of the list of displayed values (from which I need to select a 
value) and the 'Ok' button.  Also the command 'flash' is not 'flashing' the 
modal dialog box and the frame and the form within it.  

Please help me to make Watir to select a value from this dialog box and click 
the 'Ok' button..

Thanks for your time,
Vijay.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6357&messageID=18107#18107
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to