Hi,

Currently, you can only use assertTextInElement(String elementID,
                    String text)


For example:
assertTextInElement("ctl00_ContentMain_lblInsuranceRisks", "The Value");

However we could plan some new methods for 1.5. For example:
void assertTextInElementByXPath(String xpath, String text);
String getTextInElement(String elementId);
String getTextInElementByXPath(String xpath);

Feel free to open a new feature request.

++

Julien

----- Message d'origine ----
De : Dragan Pazin <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Mercredi, 7 Mars 2007, 14h43mn 35s
Objet : [JWebUnit-users] GetElementAttributByXPath

Message

 



I have following 
element on the page

 

<span 
id="ctl00_ContentMain_lblInsuranceRisks">The 
Value</span>

 

 

Method 
GetElementAttributByXPath finds it, but 
the problem is that I would like to get the value of the element ("The Value"). 

 

Can I do it with the GetElementAttributByXPath method, or is there something 
else?

 

regards

   
Dragan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users







        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to