Don't know if you're using Firefox but there's 2 add-ons that really make 
life easier-  The WebTest Recorder allows you to inspect the XPath right 
there. And it can record some basic tests. Also, if you have some HTML 
issues - try the HTML Validator plugin - it has options that will clean 
the HTML for you.




"Chris Perelstein" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
04/10/2008 11:37 AM
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
[Webtest] invoke/verifyxpath no elements issue






I'm a fairly new to webtest, so I may be missing something horribly 
obvious here, but I'm having an issue with not being able to use 
verifyxpath on any elements when I load a specific page.  As I backed off 
on the depth of what I was trying to identify, I discovered I couldn't 
even match the body of the document.  The html is horribly invalid, and my 
current theory is that this is the source of my problem, but I'm not 
entirely sure.  Most pages on the site haven't given me too much trouble. 
The simplified version of the test is as follows:

<invoke url="http://www.gamevee.com/user/perelstein/videos"; />
<verifyXPath xpath="//a" />  (FAILS)
<verifyXPath xpath="//body" /> (FAILS)
<verifyXPath xpath="/html" /> (FAILS)

Any insight is highly appreciated.

Reply via email to