Micro Focus QTP (UFT) Forums
HTML ID's in XSLT - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: HTML ID's in XSLT (/Thread-HTML-ID-s-in-XSLT)



HTML ID's in XSLT - paul_chatha - 01-28-2009

Hiya

For some reason teh IE developer Toolbar cannot identify or pick up the html id for my dropdown (id="diallingCodeCtry" )..I need to add and identify the HTML Id as I plan to create an automated test that selects a country from this very dropdown

Can someone please please help me in getting this solved..I have tried various options

Code:
<div class="fieldrow">
  <span><label for="diallingCodeCountry" class="mandatory" id="diallingCodeCountryLabel">
       <xsl:value-of disable-output-escaping="yes" select="xslHelper:getString($resources,'formFaxCode')"/>    
  </label></span>

<select id="diallingCodeCtry" name="diallingCodeCountry" class="select ruleMandatory">
     <option value=""><xsl:value-of disable-output-escaping="yes" select="xslHelper:getString($resources,'plsSelect')"/></option>
     <option>
          <script type="text/javascript" language="javascript">writeFunctionalCountryOptionsForPhone('<xsl:value-of select="$previousFaxCode"/>');</script>
     </option>
</select>
</div>



RE: HTML ID's in XSLT - tarunlalwani - 02-04-2009

See if this helps

http://knowledgeinbox.com/articles/qtp/object-identification/identifying-controls-using-labels-approach-1/