Interesting website.

I think if you view the generated source for the website you will find
that the "family" <SELECT...> group does not have any <OPTION> elements.
That is what would probably be expected given your question.

   <select name="family" multiple="multiple" size="7"
    onchange="changeFamilyBox('family', 'species')" id="familyBox"
    class="selectboxStrains">

   </select>

However, the manual page for <setSelectField...>
         http://webtest.canoo.com/webtest/manual/setSelectField.html
might be a bit ambiguous in distinguishing between setting a selection
(making a value active in a <SELECT> group) and adding a new <OPTION> to
the <SELECT> group <OPTION>s. I read the manual page to say that
<setSelectField...> is selecting an <OPTION> rather than adding a new
<OPTION> to the list.

I am not sure that Webtest has a step that will allow the types of
things usually done with 
   object = document.getElementByID(...)
and then setting the new HTML using
   object.innerHTML = newHTMLStuff

You might have to add a new taskdef to accomplish adding an <OPTION> if
that is what is really desired. You do not get an error on the first of
the two <setSelectField...> because that <OPTION> exists and can be
selected.

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

Reply via email to