<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Not able to click Menu Item — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Fri, 13 Nov 2026 09:19:00 +0000</pubDate>
        <language>en</language>
            <description>Not able to click Menu Item — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Not able to click Menu Item. Requesting Help</title>
        <link>https://community.sahipro.com/forums/discussion/1105/not-able-to-click-menu-item-requesting-help</link>
        <pubDate>Mon, 27 Jul 2009 06:44:27 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>vijaysahi</dc:creator>
        <guid isPermaLink="false">1105@/forums/discussions</guid>
        <description><![CDATA[Hi,<br />
<br />
I have the following script to run. What i am trying to do with this automation script is<br />
<br />
1. Login to an application<br />
2. Click a folder (represented as hyper link) in the home page<br />
3. Click a Menu<br />
4. Click a menu item<br />
<br />
I am able to go till clicking menu successfully. But, the script fails in clicking menu item<br />
<br />
Script fails in the line<br />
<br />
_click(top.view.workarea.content.document.getElementsByTagName('div')[450]);<br />
<br />
with the following error - &quot;Error: The parameter passed to _click was not found on the browser&quot;<br />
<br />
I am getting the same error if i use _click(_div(&quot;Import&quot;)); to click the menu item (&quot;Import&quot; is the<br />
menu item name). Interestingly, in the sahi recorder, if i click the &quot;Click&quot; button keeping the line &quot;_div(&quot;Import&quot;)&quot; in the accessor field of the recorder it clicks the &quot;Import&quot; Menu Item.<br />
<br />
Here is the complete automation script<br />
<br />
_setValue(_textbox(&quot;Login_username_0&quot;), &quot;username&quot;);<br />
_setValue(_password(&quot;Login_password_0&quot;), &quot;password&quot;);<br />
_click(_button(&quot;Login&quot;));<br />
_assertExists(_span(&quot;User Name&quot;));<br />
_assertContainsText(&quot;User Name&quot;, _span(&quot;User Name&quot;));<br />
_click(_span(&quot;My Folder&quot;));<br />
_doubleClick(_image(&quot;My Folder&quot;));<br />
<br />
_click(_div(&quot;MenuBar_file_menu_0html_id&quot;));<br />
_click(top.view.workarea.content.document.getElementsByTagName('div')[450]);<br />
<br />
_click(_button(&quot;Logout&quot;));<br />
<br />
Please guide me how to proceed further.<br />
<br />
Thanks]]>
        </description>
    </item>
   </channel>
</rss>
