<?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>Applet — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Thu, 23 Apr 2026 18:00:23 +0000</pubDate>
        <language>en</language>
            <description>Applet — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/Applet/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Sahi on Java applet file uplaod page</title>
        <link>https://community.sahipro.com/forums/discussion/1113/sahi-on-java-applet-file-uplaod-page</link>
        <pubDate>Fri, 31 Jul 2009 09:36:10 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>realminds</dc:creator>
        <guid isPermaLink="false">1113@/forums/discussions</guid>
        <description><![CDATA[Hi,<br />
I was testing Sahi to update a few fields on soem secure pages, works pretty fine. I have a page made in java upload where when it loaded, one can press a button to browse for a file, then submit and file is uploaded to web server. I wonder if it is possible to automate using sahi?<br />
Thanks]]>
        </description>
    </item>
    <item>
        <title>Not able to import files - Thru Java Applet</title>
        <link>https://community.sahipro.com/forums/discussion/1134/not-able-to-import-files-thru-java-applet</link>
        <pubDate>Sun, 16 Aug 2009 11:26:55 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>vijaysahi</dc:creator>
        <guid isPermaLink="false">1134@/forums/discussions</guid>
        <description><![CDATA[Hi,<br />
<br />
In one of the pages in my application, there is a java applet for file selector. The applet has a text area which displays the selected files and three buttons - Add files, Add folders and Remove. On clicking the Add files button application will bring up a applet file chooser which is similar to windows file chooser.<br />
<br />
While using the recorder if i scroll the mouse over the &quot;Add Files&quot; button i am seeing following line in the accessor field of the recorder window<br />
&quot;top.view.workarea.content.frames[0].document.getElementsByTagName('div')[5]&quot;<br />
<br />
If i call _click(top.view.workarea.content.frames[0].document.getElementsByTagName('div')[5]);<br />
in my script, the &quot;Add files&quot; button is getting clicked and my script runs with &quot;SUCCESS&quot; as the status. But, the file chooser is not coming up - though after giving wait statement.<br />
<br />
If i call _click(_button(&quot;Add Files&quot;)); in my script, the &quot;Add files&quot; button is NOT getting clicked and my script runs with &quot;FAILURE&quot; as the status.<br />
<br />
The help I am looking for is:<br />
<br />
1. How do i bring up the applet &quot;File chooser&quot; after clicking the &quot;Add files&quot; button<br />
2. How do i import a file via applet file chooser<br />
<br />
P.S:
<hr />
<br />
1. I went thru the API documents and found _setFile API. Since i don't find &lt;input type=&quot;file&quot; tag in my application page HTML code i don't know how to use it. I think since the file chooser component in my application is handled as an applet i don't find this file input in the html page<br />
<br />
2. In the same page where i have to select file, i have a button &quot;Next&quot; to go to the next page. This is not part of the applet.<br />
<br />
3. I am pasting the key applet param tags<br />

<pre><code>&lt;param name=\&quot;RSLT_KEY\&quot; value=\&quot;CustomImportContainer_fileselector_0\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_CANCEL_BUTTON\&quot; value=\&quot;Cancel\&quot;&gt;\n&lt;param name=\&quot;MSG_PNL_ADD_FILES_BUTTON\&quot; value=\&quot;Add Files\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FOLDERS_TITLE\&quot; value=\&quot;Select Folders\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FILE_TYPE_LBL\&quot; value=\&quot;File types:\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FILES_TITLE\&quot; value=\&quot;Select Files\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FILE_NAME_LBL\&quot; value=\&quot;File name:\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FOLDER_TITLE\&quot; value=\&quot;Select Folder\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FILE_TITLE\&quot; value=\&quot;Select File\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_LOOK_IN_LBL\&quot; value=\&quot;Look In:\&quot;&gt;\n&lt;param name=\&quot;MSG_PNL_REMOVE_FILES_BUTTON\&quot; value=\&quot;Remove\&quot;&gt;\n&lt;param name=\&quot;MSG_FOLDER_SELECTION_ERROR\&quot; value=\&quot;Folder not found. Please, verify the folder name and try again.\&quot;&gt;\n&lt;param name=\&quot;MSG_FILE_SELECTION_ERROR\&quot; value=\&quot;File not found. Please, verify the file name and try again.\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_FOLDER_NAME_LBL\&quot; value=\&quot;Folder name:\&quot;&gt;\n&lt;param name=\&quot;MSG_PNL_ADD_FOLDERS_BUTTON\&quot; value=\&quot;Add Folders\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_SET_BUTTON\&quot; value=\&quot;Set\&quot;&gt;\n&lt;param name=\&quot;MSG_DLG_OK_BUTTON\&quot; value=\&quot;OK\&quot;&gt;
</code></pre>
]]>
        </description>
    </item>
   </channel>
</rss>
