In order to get XML element using Selenium RC (.NET client) I used the following strategy,
- Open XML document in webbrowser using
selenium.Open(http://www.servername.com/my.xml); - Use selenium GetText method (which returns the inner text of XML tag). I used XPATH expression to locate the tag inside XML document
String myText = selenium.GetText("//plan[1]");
No comments:
Post a Comment