Hi Basim, Great thanks for your answer, but it still does not work. The same error occurred: C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in `method_missing': document (WIN32OLERuntimeError) I also tried Telerik WebUI Test Studio, it does not recognize frame either. Our web service system is huge, I was so excited to start at the beginning. But now I feel so lost and frustrated, I feel like making even 50% of the system automation is impossible task. :( !
On Aug 19, 2:18 pm, Basim Baassiri <ba...@baassiri.ca> wrote: > Have you tried reading the documentation for select_list > > Can you try something like this? > browser.frame( :id, "Main_Body" ).select_list( > :name, "Property_Type_ComboBox" ).select( "Mobile/Floating Home" ) > or > browser.frame( :id, "Main_Body" ).select_list( > :name, "Property_Type_ComboBox" ).select_value( "MOBL" ) > > Basim > > On Thu, Aug 19, 2010 at 5:05 PM, Chan Nguyen <atbl1...@gmail.com> wrote: > > I'm so frustrated with iframe using Watir. I really don't want to give > > up on 'watir' but it seems too difficult to get the job done :( ! I > > really need an advice, please help. What's other alternative for Web > > Testing Automation? > > > On Aug 19, 9:38 am, Chan Nguyen <atbl1...@gmail.com> wrote: > > > Hi everyone, > > > I run into an issue when accessing a ComboBox through frame, I got > > > this error message : > > > C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in > > > `method_m > > > issing': document (WIN32OLERuntimeError) > > > OLE error code:80070005 in <Unknown> > > > Access is denied. > > > > HRESULT error code:0x80020009 > > > Exception occurred. > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > frame.rb:52 > > > :in `document' > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > container.r > > > b:800:in `locate_input_element' > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > input_eleme > > > nts.rb:5:in `locate' > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > element.rb: > > > 53:in `assert_exists' > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > input_eleme > > > nts.rb:62:in `select_item_in_select_list' > > > from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > > > input_eleme > > > nts.rb:46:in `set' > > > from Listing.rb:28 > > > > But I really don't know why, since the "nested frame" worked for one > > > page, that page does have the same "iframe". While it failed badly on > > > the other page: > > > > The ruby code: > > > main_frame = browser.frame( :id, "Main_Body" ) > > > main_frame.select_list( :name, > > > "Property_Type_ComboBox" ).set( "MOBL" ) > > > > And the HTML source from FireBug: > > > <select onchange="apnFormat()" name="Property_Type_ComboBox"> > > > <option value=""> </option> > > > <option selected="" value="RESI"> Residential</option> > > > <option value="MOBL"> Mobile/Floating Home</option> > > > <option value="LOTL"> Lots & Land</option> > > > <option value="MFM5"> Multi Unit 5+</option> > > > <option value="COMI"> Commercial</option> > > > <option value="BUSO"> Business Opportunity</option> > > > </select> > > > > Any idea? Thanks in advance! > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > You received this message because you are subscribed to > >http://groups.google.com/group/watir-general > > To post: watir-general@googlegroups.com > > To unsubscribe: > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com