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