[Webtest] Cannot locate input / select field

Aatish Arora webtest@lists.canoo.com
Sun, 24 Aug 2003 23:51:28 -0700 (PDT)


Hey!

Have you tried using the *text* and *formaname*
attributes for verify select field?

cheers!

Aatish

--- Saba Sundke <saba_sundke@persistent.co.in> wrote:
> No it doesn't work even if I change it.
> 
> I changed the source html to set California
> selected. The saved response
> clearly shows this change but the step does not work
> <verifyselectfield stepid="Ensure that the state
> selectbox is CA"
> 	name="state"
> 	value="CA"/>
> 
> The parser warnings are not significant
> 1. Warning: <table> lacks "summary" attribute
> 2. Warning: adjacent hyphens within comment
> 
> and like I said before I can open the response in
> XPath Explorer
> 
> I have also pasted the html response for the input
> fields that do not work
> 
>     <td width="13%"><p class="boldtext">Site
> Code:</p></td>
>     <td width="44%"><input type="text"
> name="sitecode" value="DNVR"
> class="tabletext">
>     </td>
>     <td width="12%"><p
> class="boldtext">Subsite:</p></td>
>     <td width="31%"><input type="text"
> name="subsite" value=""
> class="tabletext" >
> 
> Thanx
> Saba
> 
> -----Original Message-----
> From: webtest-admin@gate.canoo.com
> [mailto:webtest-admin@gate.canoo.com]On Behalf Of
> Aatish Arora
> Sent: Friday, August 22, 2003 1:06 PM
> To: webtest@gate.canoo.com
> Subject: RE: [Webtest] Cannot locate input / select
> field
> 
> 
> Hi!
> 
> Some questions -
> 1) does it work for any other selection (except
> *colorado*)? for bothe the cases verify and select?
> 
> 2)what are the parser warnings?
> 
> cheers
> aatish
> 
> --- Saba Sundke <saba_sundke@persistent.co.in>
> wrote:
> > HI Aatish
> >
> > The relevant section is pasted below
> >
> > - Saba
> >
> >   <tr>
> >     <td><p class="boldtext">Region:</p></td>
> >     <td>
> >       <select name="region" id="region"
> > class="tabletext"  >
> > <option value="">Select One</option>
> > <option value='MW' selected>MidWest</option>
> > <option value="NE">New England</option>
> > <option value="NorthEast">Northeast</option>
> > <option value="PN">Pacific Northwest</option>
> > <option value="SE">Southeast</option>
> > <option value="SW">Southwest</option>
> >       </select>
> >    </td>
> >     <td>&nbsp;</td>
> >     <td>&nbsp;</td>
> >   </tr>
> >   <tr>
> >     <td><p class="boldtext">State:</p></td>
> >     <td><SELECT NAME="state" TABINDEX="9"
> > class="tabletext" >
> > <option value="">Select One</option>
> > <option value="AL">Alabama(AL)</option>
> > <option value="AK">Alaska(AK)</option>
> > <option value="AS">American Samoa(AS)</option>
> > <option value="AZ">Arizona(AZ)</option>
> > <option value="AR">Arkansas(AR)</option>
> > <option value="CA">California(CA)</option>
> > <option value='CO' selected>Colorado(CO)</option>
> > <option value="CT">Connecticut(CT)</option>
> > <option value="DE">Delaware(DE)</option>
> > <option value="DC">District of
> Columbia(DC)</option>
> > <option value="FM">Federated States of
> > Micronesia(FM)</option>
> > <option value="FL">Florida(FL)</option>
> > <option value="GA">Georgia(GA)</option>
> > <option value="GU">Guam(GU)</option>
> > <option value="HI">Hawaii(HI)</option>
> > <option value="ID">Idaho(ID)</option>
> > <option value="IL">Illinois(IL)</option>
> > <option value="IN">Indiana(IN)</option>
> > <option value="IA">Iowa(IA)</option>
> > <option value="KS">Kansas(KS)</option>
> > <option value="KY">Kentucky(KY)</option>
> > <option value="LA">Louisiana(LA)</option>
> > <option value="ME">Maine(ME)</option>
> > <option value="MH">Marshall Islands(MH)</option>
> > <option value="MD">Maryland(MD)</option>
> > <option value="MA">Massachusetts(MA)</option>
> > <option value="MI">Michigan(MI)</option>
> > <option value="MN">Minnesota(MN)</option>
> > <option value="MS">Mississippi(MS)</option>
> > <option value="MO">Missouri(MO)</option>
> > <option value="MT">Montana(MT)</option>
> > <option value="NE">Nebraska(NE)</option>
> > <option value="NV">Nevada(NV)</option>
> > <option value="NH">New Hampshire(NH)</option>
> > <option value="NJ">New Jersey(NJ)</option>
> > <option value="NM">New Mexico(NM)</option>
> > <option value="NY">New York(NY)</option>
> > <option value="NC">North Carolina(NC)</option>
> > <option value="ND">North Dakota(ND)</option>
> > <option value="MP">Northern Mariana
> > Islands(MP)</option>
> > <option value="OH">Ohio(OH)</option>
> > <option value="OK">Oklahoma(OK)</option>
> > <option value="OR">Oregon(OR)</option>
> > <option value="PW">Palau(PW)</option>
> > <option value="PA">Pennsylvania(PA)</option>
> > <option value="PR">Puerto Rico(PR)</option>
> > <option value="RI">Rhode Island(RI)</option>
> > <option value="SC">South Carolina(SC)</option>
> > <option value="SD">South Dakota(SD)</option>
> > <option value="TN">Tennessee(TN)</option>
> > <option value="TX">Texas(TX)</option>
> > <option value="UT">Utah(UT)</option>
> > <option value="VT">Vermont(VT)</option>
> > <option value="VI">Virgin Islands(VI)</option>
> > <option value="VA">Virginia(VA)</option>
> > <option value="WA">Washington(WA)</option>
> > <option value="WV">West Virginia(WV)</option>
> > <option value="WI">Wisconsin(WI)</option>
> > <option value="WY">Wyoming(WY)</option>
> >     </select></td>
> >     <td>&nbsp;</td>
> >     <td>&nbsp;</td>
> >   </tr>
> >
> >
> >
> > -----Original Message-----
> > From: webtest-admin@gate.canoo.com
> > [mailto:webtest-admin@gate.canoo.com]On Behalf Of
> > Aatish Arora
> > Sent: Thursday, August 21, 2003 9:32 PM
> > To: webtest@gate.canoo.com
> > Subject: Re: [Webtest] Cannot locate input /
> select
> > field
> >
> >
> > Hi!
> >
> > If possible can u paste the html code for it?
> >
> > cheers!
> > Aatish
> >
> > --- Saba Sundke <saba_sundke@persistent.co.in>
> > wrote:
> > > I'm using the following step, but WebTest is
> > unable
> > > to Locate the input
> > > field.
> > > 	<verifyinputfield stepid="Ensure that the
> subsite
> > > input box is set blank"
> > > 		name="subsite"
> > > 	value=""/>
> > > If I use the below XPath it works
> > > 	<verifyxpath stepid="Ensure that the subsite
> > input
> > > box is set blank"
> > > 		xpath="//input[@name='subsite']"
> > > 	text=""/>
> > >
> > > Similarly for verifying if select option is
> > correct
> > > if I use XPath below, it
> > > works
> > > 		<verifyxpath stepid="Ensure that the state
> > > selectbox is at Colorodo"
> > >
> > >
> xpath="//select[@name='state']//option[@selected]"
> > > 			            text="Colorado(CO)"/>
> 
=== message truncated ===


=====
========================
THE FOUR STAGES OF LIFE:

1) You believe in Santa Claus.
2) You don't believe in Santa Claus.
3) You are Santa Claus.
4) You look like Santa Claus.
========================

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com