On Friday, June 15, 2012 9:02:32 AM UTC-7, Suzie Nieman wrote:
>
> I am writing a script to test a web app that has a text field, and when 
> something is entered there, a dropdown will appear. I need to select that 
> item.
>
> Here is the source for the text field itself and then the dropdown when it 
> appears (in that order)
>
> <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> 
>
> I tried to search for people with a similar issue and only found one case 
> here: http://mishmashmoo.com/blog/?p=19
>
> But did not understand exactly what the workspace was or what it was doing.
>
> Here is what I am using (with @browser = IE.new and a webpage already 
> loaded):
>
> *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*
> *
> *
> Which produces this error:
>
>
> 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)
>

OK so this error says that it cannot locate the frame, using the name 
"store"   Are you sure that frame exists and has that name attribute?   Can 
you show us the HTML for the frame.   

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to