Hello all,
I have a webpage I am trying to use WebTest/XPATH to extract a value. I've cut-and-pasted the html in this post. I've confirmed the XPATH is correct using XPATH Explorer and Stylus tools.
Here are some things I've seen:
- The value I'm trying to grab is within a bold tag
- The value is preceeded and succeeded by embedded tab characters (I can't change)
Here's the XPATH (I've also removed the string function and given an absolute path - no change):
string(//[EMAIL PROTECTED]'etContent']/form[1]/table[1]/tr[2]/td[2]/div[1]/table[1]/tr[1]/td[1]/table[2]/tr[1]/td[1]/table[1]/tr[1]/td[2]/font[1]/b[1])
My WebTest script does not report an error but, instead, appears to show a blank value (could this be the result of the tab?)
Is this an XPATH 1.0 vs. 2.0 issue? Does WebTest use XPATH 1.0 or 2.0?
I'm stumped - help, please.
Thanks
-----------------
<table border="0" cellpadding="3" cellspacing="1" width=100% bgcolor="#999999">
<tr>
<td bgcolor="#cccccc" height="30"><b>Last<br>Price</b></td>
<td nowrap bgcolor="#ffffcc"><font size="3"><b>
14.20
</b></font>
</td>
---------------------

