[Webtest] Cannot locate input / select field

Saba Sundke webtest@lists.canoo.com
Fri, 22 Aug 2003 09:50:44 +0530


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)"/>
> but not
>       <verifyselectfield stepid="Ensure that the
> state selectbox is
> Colorodo"
>                         name="state"
>                         value="CO"/>
> 
> There is no significant parser warning for the
> result (except summary
> attribute required for table). I'm able to open the
> result html in XPath
> Explorer. What is the issue?
> 
> - Saba
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest


=====
========================
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
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest