This also appears to be a duplicate of a very similar question she posted 2 hours prior..
On Friday, June 15, 2012 12:35:19 PM UTC-7, Oscar.Rieken wrote: > > looks like you are not finding your iframe > > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/elemen > t.rb:66:in `assert_exists': *Unable to locate element, using > {:tag_name=>["frame"* > *, "iframe"], :name=>"store"}* (Watir::Exception::UnknownFrameException) > > On Fri, Jun 15, 2012 at 2:08 PM, Suzie Nieman <niema...@gmail.com> wrote: > >> I am using Watir to submit a form, and one of the fields will populate a >> list of options using AJAX. I need to select this option from the dropdown >> but keep running into problems. >> >> Here is the source of the text field and the dropdown option when it >> appears: >> >> <input type="text" name="store" id="store" size="15" >> onkeyup="storeAutoComplete(event);" onblur="popupRemoveFocus();" >> style="height:20;" value=""> >> >> <td>Store 214-SOUTH COAST PLAZA </td> >> >> And here is the watir script I am trying to use after seeing this post: >> http://mishmashmoo.com/blog/?p=19 >> >> #requires >> require 'watir' >> >> #includes >> include Watir >> >> @browser = IE.new >> >> def workspace; @browser.frame(:name, "store"); end >> >> begin >> workspace.text_field(:name, 'store').set('214') >> wait_until { workspace.cell(:title, 'Store 214-SOUTH COAST >> PLAZA').exists? } >> workspace.cell(:title, 'Store 214-SOUTH COAST PLAZA').click >> end >> >> And this is the error I'm recieving: >> >> >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/elemen >> t.rb:66:in `assert_exists': Unable to locate element, using >> {:tag_name=>["frame" >> , "iframe"], :name=>"store"} (Watir::Exception::UnknownFrameException) >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/frame.rb:34:in `document' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/frame.rb:30:in `__ole_inner_elements' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/locator.rb:199:in `each_element' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/locator.rb:224:in `each' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/locator.rb:212:in `locate' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/input_elements.rb:5:in `locate' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/element.rb:63:in `assert_exists' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c >> lassic/input_elements.rb:287:in `set' >> from scccase.rb:26:in `<main>' >> >> >> Which leads me to believe that I'm messing something up. Anyone have any >> advice? Thanks. :) >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-general@googlegroups.com >> http://groups.google.com/group/watir-general >> watir-general+unsubscr...@googlegroups.com >> > > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com