Hi Marc,
It looks like you are right it is a dynamically generated filed at run time.
When I executed the following step; webtest printed the same output I see
from Firefox (firebug). However, I am assuming the next for me it to find
out the xpath and try to creat click events for the date?
Is there a way I can input JavaScript at run time into my test to change
this fields?
Maybe Document.getElementbyID?
groovy {
println step.context.currentResponse.asXml()
}
I am not sure how to handel
<table id="batchFormTable" class="centered">
[groovy] <tbody>
[groovy] <tr id="cal" style="{display: none};">
[groovy] <td class="input-label">
[groovy] Start date
[groovy] </td>
[groovy] <td>
[groovy] <div id="sdate"
dojotype="dropdowndatepicker
" inputname="startDate" inputid="startDate" displayformat="MM/dd/yyyy"
value="">
[groovy] </div>
[groovy] </td>
[groovy] <td class="input-label" align="left">
[groovy] End dateĆ”
[groovy]
[groovy] <div id="edate"
dojotype="dropdowndatepicker
" inputname="endDate" inputid="endDate" displayformat="MM/dd/yyyy" value="">
[groovy] </div>
[groovy] </td>
[groovy] </tr>
[groovy] <tr>
[
On Wed, May 6, 2009 at 3:08 AM, Marc Guillemot <[email protected]> wrote:
> Hi,
>
> is the input field generated dynamically? Can you dump the page to the
> console see the current state of the DOM:
>
> <groovy>
> println step.context.currentResponse.asXml()
> </groovy>
>
> Cheers,
> Marc.
> --
> Web: http://www.efficient-webtesting.com
> Blog: http://mguillem.wordpress.com
>
> Vihang Desai wrote:
> > Hi Marc,
> >
> > When I try the setInputField name:"startDate", value:"01/01/2009" in
> > Cannoo WebTest; the field is not found.
> >
> > I am getting the error message "No suitable form found having field
> > named "startData". The dojo Calendar field is not recognized by
> > htmlUnit. In the resulting page I am not able to see the field at all.
> >
> > I am trying to find out if there is code out there for htmlUnit to
> > recognize the dojo Calendar filed on my website.
> >
> > Please let me know if you have any thing at all.
> >
> > All help is welcome because I really like WebTest as testing and
> > reporting tool.
> >
> >
> > Thank you,
> >
> >
> > Vihang Desai
> >
> >
> >
> > On Wed, Apr 29, 2009 at 3:56 AM, Marc Guillemot <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > Hi Vihang,
> >
> > what doesn't work exactly?
> >
> > Cheers,
> > Marc.
> > --
> > Web: http://www.efficient-webtesting.com
> > Blog: http://mguillem.wordpress.com
> >
> > Vihang Desai wrote:
> > > Hi Everyone,
> > >
> > > In one of my test I am trying to change the date for a dojo
> calendar
> > > widegit. However, my setInputField function below is not working.
> > >
> > > Can anyone provide me with a example of changing a dojo Calendar
> text
> > > field in WebTest?
> > >
> > > setInputField name:"startDate", value:"01/01/2009"
> > >
> > >
> > > Please advise...
> > >
> > > Thank you,
> > >
> > >
> > > --
> > > __________________________
> > > Vihang Desai
> > > Test Engineer (U.S. Citizen)
> >
> > _______________________________________________
> > WebTest mailing list
> > [email protected] <mailto:[email protected]>
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> >
> >
> > --
> > __________________________
> > Vihang Desai
> > Test Engineer (U.S. Citizen)
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
--
__________________________
Vihang Desai
Test Engineer (U.S. Citizen)