If you add a sleep statement before the second selectField then the test can
pass. Or you can use the config option of easyajax which "makes each step take
2 seconds when the app uses continuously setInterval" (Marc from the mailing
list). I used both methods and was able to select from your second selectfield
(I didn't want to click the GO button in case it messed up your app somehow).
I have included examples of each below:
Easyajax:
<config host="www.biohealthbase.org" protocol="http" easyajax="true"/>
<invoke
url="/GSearch/influenza_surveillanceRecord_search.do?method=ShowCleanSearch&decorator=influenza"
/>
<setSelectField name="order" text="Anseriformes"/>
<setSelectField name="family" text="Anatidae
(Waterfowl)"/>
Sleep:
<config host="www.biohealthbase.org" protocol="http" easyajax="true"/>
<invoke
url="/GSearch/influenza_surveillanceRecord_search.do?method=ShowCleanSearch&decorator=influenza"
/>
<setSelectField name="order" text="Anseriformes"/>
<sleep seconds="2"/>
<setSelectField name="family" text="Anatidae
(Waterfowl)"/>
William Soula
QA Analyst
Pointserve, Inc.
110 Wild Basin Road
Suite 300
Austin, Texas 78746
O: 512.617.5311
F: 512.617.0466
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Policello
Sent: Tuesday, April 08, 2008 5:11 PM
To: [email protected]; Xiaomei Li; Forsberg, Mike; [EMAIL PROTECTED]
Subject: RE: [Webtest] Need help on select option from hidden selectField
I guess an easier way to say what I said previously is the following.
I am not sure that Webtest will track dynamic changes (AJAX or the like) in the
content of a page. That is, the <OPTION> tags are added programmatically after
the first selection is made;
<setSelectField name="order" text="Anseriformes"/>.
My guess is there is some way to track dynamic changes but I do not know it.
George
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xiaomei Li
Sent: Tuesday, April 08, 2008 2:24 PM
To: Forsberg, Mike; [EMAIL PROTECTED]
Subject: RE: [Webtest] Need help on select option from hidden selectField
For exampel, in this url:
http://www.biohealthbase.org/GSearch/influenza_surveillanceRecord_search
.do?method=ShowCleanSearch&decorator=influenza
I try to select Host order = Anseriformes; family = Anatidae (Waterfowl) and
run the search. The test script is like this:
<setSelectField name="order" text="Anseriformes"/> <setSelectField
name="family" text="Anatidae (Waterfowl)"/> <clickButton label="Go"/>
but got error no option element found with text "Anatidae (Waterfowl)".
thanks,
Xiaomei
--- "Forsberg, Mike" <[EMAIL PROTECTED]> wrote:
> From my understanding hidden fields should be set via execution of
> some javascript. For instance, how would a user set this value if
> they were visiting your webpage?
>
> Could you give a small example of your webpage and what error you've
> experienced?
>
> Big Mike
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Xiaomei Li
> Sent: Tuesday, April 08, 2008 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: [Webtest] Need help on select option from hidden selectField
>
> Hi,
> The web application I am testing has some hidden select fields that
> handled by javascript. I tried to select an option from the hidden
> selectfield and got webtest error. Anyone knows how to handle this?
>
> Thanks,
> Xiaomei
>
>
>
>
________________________________________________________________________
> ____________
> You rock. That's why Blockbuster's offering you one month of
> Blockbuster Total Access, No Cost.
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
>
________________________________________________________________________
____________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total
Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest