Could you please help me write Xpath to validate the amounts especially the amounts ($ 393.44, $ 296.67, $ 296.67). These amounts are same everytime in my testcase.
1st payment on July 7, 2009 of $ 393.44
2nd payment on August 7, 2009 of $ 296.67
3rd payment on September 7, 2009 of $ 296.67
I was trying to use XPather(and firebug) and it gives whole text (i.e text between <ol> tags)?
<ol>
<li>Method: <strong>Credit Card</strong></li>
<li></li>
<li>Card Number:<strong>XXXXXXXX1111</strong></li>
<p>
<strong>Payment Schedule</strong>
</p>
1st payment on July 7, 2009 of $ 393.44
<br/>
2nd payment on August 7, 2009 of $ 296.67
<br/>
3rd payment on September 7, 2009 of $ 296.67
<br/>
</ol>
You can parse that using JavaScript regular expressions:
This should help:
http://seleniumhq.org/docs/04_selenese_commands.html#javascript-and-selenese-parameters
Saludos
Santi
