My program it unable to click on Submit button. Below is the Code

My code :
 def Click_Show_Criteria
   $ie.button(:id,'showSearchCriteriaButton').click
 end

HTML:

<TABLE cellpadding=0 cellspacing=0 style='width:100%'><TR
class='action_button_area'><TD style='width:99%'><BUTTON
id='hideSearchCriteriaButton' onclick='hideSearchCriteria()'>Hide
Search Criteria</BUTTON><BUTTON id='showSearchCriteriaButton'
onclick='showSearchCriteria()'
onmouseover='showFriendlySearchCriteriaText(this)'
style='display:none'>Show Search Criteria</BUTTON>&nbsp;<TD
NOWRAP><DIV NOWRAP id='_datasetNavArea'></DIV><TD style='text-
align:right' NOWRAP><a id='subSearchNavArea'
style='display:none;color:black' href='#' onclick='popSearch();return
false;'>&lt;&lt;Back</a>&nbsp;<TD style='text-align:right' NOWRAP><TD
style='text-align:right' NOWRAP id='optionsArea'><TD style='text-
align:right' NOWRAP>Group By: <SELECT
onchange='handleGroupBy(this);'><OPTION m_index='-1'>No
Grouping<OPTION m_Index='2' m_DateGranularity='1'>Status</SELECT></
TABLE>

I am getting following error

d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_ex
ists': Unable to locate element, using :id,
"showSearchCriteriaButton" (Watir::E
xception::UnknownObjectException)

-- 
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: [email protected]
To unsubscribe: [email protected]

Reply via email to