Wrong result for (simple) xpath?

View: New views
3 Messages — Rating Filter:   Alert me  

Wrong result for (simple) xpath?

by A Vander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Webtest users,

Since I downloaded latest build 1716 I get an unexpected result in a rather simple verifyXPath using the expression xpath="//input[@name='disconnect' and @type='button']".

When I paste this expression in the Xpath tab of the Webtest Recorder the button gets highlighted correctly on the same page...

The page validates using the FF HTML validator extension.

TIA for your attention,
Avander


     
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: Wrong result for (simple) xpath?

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

are you sure that the current response is *really* what you expect when
the XPath expression is used?

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

A Vander wrote:

> Hi Webtest users,
>
> Since I downloaded latest build 1716 I get an unexpected result in a rather simple verifyXPath using the expression xpath="//input[@name='disconnect' and @type='button']".
>
> When I paste this expression in the Xpath tab of the Webtest Recorder the button gets highlighted correctly on the same page...
>
> The page validates using the FF HTML validator extension.
>
> TIA for your attention,
> Avander
>
>
>      
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: Wrong result for (simple) xpath?

by A Vander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I'm quite sure the current response is what is expected. I just have to read the wt test report, it has a link to the error and a link to the page. The content of this page is the expected one...

Regards, Avander


Marc Guillemot wrote:
Hi,

are you sure that the current response is *really* what you expect when
the XPath expression is used?

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

A Vander wrote:
> Hi Webtest users,
>
> Since I downloaded latest build 1716 I get an unexpected result in a rather simple verifyXPath using the expression xpath="//input[@name='disconnect' and @type='button']".
>
> When I paste this expression in the Xpath tab of the Webtest Recorder the button gets highlighted correctly on the same page...
>
> The page validates using the FF HTML validator extension.
>
> TIA for your attention,
> Avander
>
>
>      
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
LightInTheBox - Buy quality products at wholesale price!