Hari prasanna a écrit :
Hi All,
Please do ignore the prev mail, i have updated the structure of the page.

I want to check the text (Test Task1) which will be visible in the app .I am using the Xpath _expression_ to get to the text in the app.
Command Usage:
verifyText    //[EMAIL PROTECTED]'taskLenLabel']/@text    Test Task1    -Error no element found

verifyText    //[EMAIL PROTECTED]'taskLenLabel']/text    Test Task1    -Error no element found

verifyText    //[EMAIL PROTECTED]'taskLenLabel']/#text    Test Task1    -Error invalid _expression_ error ->51

This is the structure of the document:

TBODY
--DIV        id=tasklist
    --#text      Node Value = "Test Task1"

How to access the 'text' element???
Note that such kind of questions should be posted in selenium *user* forum.
I think when you use verifyText, you just have to give an element that is
verifyText    //[EMAIL PROTECTED]'taskLenLabel']
should be enough.

Hope it helps
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-devel mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel

Reply via email to