nikgoodley-ibboost / aost

Automatically exported from code.google.com/p/aost
0 stars 0 forks source link

Add support for New Xpath handling in Selenium Beta 2 #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
According to this page

http://clearspace.openqa.org/community/selenium/blog/2009/01/13/selenium-rc-beta
-2-goodies-and-gotchas

Beta 2 has a new XPath library

"You can select this library in your test with the useXpathLibrary
Selenium command. To select the new library, specify javascript-xpath
as the target of the command".

Original issue reported on code.google.com by John.Jian.Fang@gmail.com on 2 Mar 2009 at 3:50

GoogleCodeExporter commented 9 years ago
added three methods in DslContext

    public void useDefaultXPathLibrary(){
      accessor.useXpathLibrary("default")
    }

    public void useJavascriptXPathLibrary(){
      accessor.useXpathLibrary("javascript")
    }

    public void useAjaxsltXPathLibrary(){
      accessor.useXpathLibrary("ajaxslt")
    }

Original comment by John.Jian.Fang@gmail.com on 3 Mar 2009 at 12:37