Hi Avi,
See the following code snippet which worked for me:
ui.Form(uid: "layout_page", clocator: [id: "\$_fm", class:
"^aui-form"]){
InputBox (uid: "loadicon", clocator: [name: "\
$iconFileName"], respond: ["click"])
}
type "layout_page.loadicon", "H:\\images\\build_icon.png"
Note the "loadicon" is of type: <input> type="file"
Cheers, Michel
On Jan 20, 1:20 pm, Avi <[email protected]> wrote:
> Hi Matt,
>
> Can you please send me the code snippet forfileuploading. I tried as
> you suggested but data is not getting submitted.
>
> On Jan 6, 1:02 am, Matt <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I don't know if this will work for you, but I've been able to
> > automatefileuploads by treating <input type="file"> as a regular (text)
> > input
> > field, and using "type" to set the field's value to the location of
> > thefile. This works everywhere I've tried it.
>
> > On Dec 29 2010, 6:08 am, ghanshyam baheti <[email protected]>
> > wrote:
>
> > > Hi All,
>
> > > I am writing tellurium module API and have below doubts. someone please
> > > suggest on below quires.
>
> > > 1.* What is way touploadfilein tellurium UI?*
> > > Can you please give snapshot of how tellurium supportfileuploadfor
> > > element say <Input type="file">
>
> > > 2. *I am having one button on screen when I click it getting below error*.
>
> > > *Button* *UI Object*
> > > InputBox(uid: "ProjectAdd", clocator: [id: "projectAdd", class: "button"],
> > > respond: ["click"])
>
> > > *Error*
> > > ERROR: Command execution failure. Please search the Tellurium User Group
> > > athttp://groups.google.com/group/tellurium-usersforerrordetails from the
> > > log window. The error message is: element.dispatchEvent is not a function
>
> > > Strange is that; there are few other buttons too for which 'click' event
> > > works fine but issue coming in above case only. Please suggest.
>
> > > Thanks in advance...
>
> > > --
> > > Thanks,
> > > Ghanshyam Baheti.
>
> > > I am a little pencil in the hand of a writing God who is sending a love
> > > letter to the world.
> > > -------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.