Salut David, for me this XPath expression doesn't work in Firefox either (you can use for instance WebTestRecorder's XPath to test things like that). As you mentioned, removing text() make it working in Firefox... and in WebTest
//img[contains(@src,'/553.jpg')] I have only tested with build 1705 but I *really* don't think that build 1706 will be different here: the only change between these two builds is the license page on the website. Cheers, Marc. -- Blog: http://mguillem.wordpress.com dav wrote: > Le jeudi 22 mai 2008 à 10:18 -0400, Robert Koberg a écrit : >> On Thu, 2008-05-22 at 15:59 +0200, dav wrote: >>> [...] >>> >>>> Now, just modifying verifyXPath and removing the '/' before #{userId} >>>> and test pass successfully... >>> More exactly : using webTest R1705 passed (without '/'), failed with >>> R1706 (with or without '/') :-( >>> >>> I test this (my previous XPath before upgrading to 1706) : >>> >>> //img[contains(@src,'/#{userId}.jpg')] >> >> you are asking if *all* images contain the @src '/#{userId}.jpg' > > But if matching at least one node, webTest should not tells me "matched > no nodes". I just want to be sure this link is present, I'm using wrong > XPath ? Or to check if present or no so ? > > David. > -- > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

