[Webtest] Need help on select option from hidden selectField
Soula, William
Soula, William" <wsoula@pointserve.com
Wed, 9 Apr 2008 07:19:58 -0500
If you add a sleep statement before the second selectField then the test ca=
n pass. Or you can use the config option of easyajax which "makes each ste=
p 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 secon=
d selectfield (I didn't want to click the GO button in case it messed up yo=
ur app somehow). I have included examples of each below:
Easyajax:
<config host=3D"www.biohealthbase.org" protocol=3D"http" easyajax=3D"true"/=
>
<invoke url=3D"/GSearch/influenza_surveillanceRecor=
d_search.do?method=3DShowCleanSearch&decorator=3Dinfluenza" />
<setSelectField name=3D"order" text=3D"Anseriformes=
"/>
<setSelectField name=3D"family" text=3D"Anatidae (W=
aterfowl)"/>
Sleep:
<config host=3D"www.biohealthbase.org" protocol=3D"http" easyajax=3D"true"/=
>
<invoke url=3D"/GSearch/influenza_surveillanceRecor=
d_search.do?method=3DShowCleanSearch&decorator=3Dinfluenza" />
<setSelectField name=3D"order" text=3D"Anseriformes=
"/>
<sleep seconds=3D"2"/>
<setSelectField name=3D"family" text=3D"Anatidae (W=
aterfowl)"/>
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: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of George Policello
Sent: Tuesday, April 08, 2008 5:11 PM
To: webtest@lists.canoo.com; Xiaomei Li; Forsberg, Mike; webtest@gate4.cano=
o.com
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 programmatical=
ly after the first selection is made;
<setSelectField name=3D"order" text=3D"Anseriformes"/>.
My guess is there is some way to track dynamic changes but I do not know it=
.
George
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Xiaomei Li
Sent: Tuesday, April 08, 2008 2:24 PM
To: Forsberg, Mike; webtest@gate4.canoo.com
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=3DShowCleanSearch&decorator=3Dinfluenza
I try to select Host order =3D Anseriformes; family =3D Anatidae (Waterfowl=
) and run the search. The test script is like this:
<setSelectField name=3D"order" text=3D"Anseriformes"/> <setSelectField name=
=3D"family" text=3D"Anatidae (Waterfowl)"/> <clickButton label=3D"Go"/>
but got error no option element found with text "Anatidae (Waterfowl)".
thanks,
Xiaomei
--- "Forsberg, Mike" <mike.forsberg@amd.com> 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: webtest-admin@gate4.canoo.com
> [mailto:webtest-admin@gate4.canoo.com] On Behalf Of Xiaomei Li
> Sent: Tuesday, April 08, 2008 3:58 PM
> To: webtest@gate4.canoo.com
> 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
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
>
________________________________________________________________________
____________
You rock. That's why Blockbuster's offering you one month of Blockbuster To=
tal Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest