Re: [Selenium-users] (no subject)
Paul Bennett a écrit : 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 It may not be valid xml documents, still it can be valid html documents. In order to test with lantern, I just take the html part I need and clean out all &bnsp; ´ etc (replace regular expression '&.*;' with '' in a capable editor), the same for which should be replaced by (same for ). Indeed, it's not straightforward to use lantern but it proves to be useful to me with complex cases. Alex Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe. This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached. ___ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
RE: [Selenium-users] (no subject)
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 ... 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. <>___ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
Re: [Selenium-users] (no subject)
Paul Bennett a écrit : Hello, I'm trying to locate the following link ... 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. ___ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users