Wednesday, November 19, 2008

Read XML Elements using Selenium RC

In order to get XML element using Selenium RC (.NET client) I used the following strategy,

  1. Open XML document in webbrowser using


  2. 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: