Alexandre,
 
Merci beaucoup for your suggestion. I discovered by trying out Lantern that I 
may have a bigger problem: the html pages I'm testing (and which I don't 
directly control) are not valid xml documents. 
 
Paul

________________________________

From: [EMAIL PROTECTED] on behalf of Alexandre Garel
Sent: Tue 11/22/2005 2:51 AM
To: selenium-users@lists.public.thoughtworks.org
Subject: Re: [Selenium-users] (no subject)


Paul Bennett a écrit :


        Hello,
         
        I'm trying to locate the following link
         
        <a href="javascript: skillPopUp('skill1', 'skill1Text', 'skillExp1', 
'skillExp1Text', 'skillsDiv1');">
        ...
         
        using the following xpath expression in my test script:
         
        //[EMAIL PROTECTED]"javascript: skillPopUp('skill1', 'skill1Text', 
'skillExp1', 'skillExp1Text', 'skillsDiv1);"]
         
        I used the Selenium recorder plug-in for Firefox to generate the script 
including this particular expression.
         
         
        However, Selenium does not find the link. What's wrong?
        
        

Won't it be enough to use an expression like 
xpath=//a[contains(@href,skillPopUp)] or //a[contains(@href,skillPopUp) and 
contains(@href,skillExp1)]
When needed I use lantern to test xpath expr, and yours doesn't work while 
those work ! (maybe due to the presence of quotes)
Hope it helps.

Alex.





<<winmail.dat>>

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to