3 Replies Latest reply: May 16, 2013 11:37 AM by Wes Fang RSS

    writing Selenium tests for Oracle ADF web applications with RichSelenium

    mephistopheles
      Hello!

      I have found the class RichSelenium in the adf-richclient-automation-11.jar which is in path oracle_common/modules/oracle.adf.view_11.1.1/.

      This extension for Selenium seems to be quite nice for testing Oracle ADF Web Applications, because it supports some ADF specific stuff like RichComponents. Unfortunately, not all of the methods are supported without having the JavaScript file (?) for the Selenium extensions. For example, if I want to use the method
      getRichComponentProperty
      I get the following exception:
      java.lang.UnsupportedOperationException: getMarshalledRichComponentProperty
           org.openqa.selenium.WebDriverCommandProcessor.execute(WebDriverCommandProcessor.java:262)
           org.openqa.selenium.WebDriverCommandProcessor.getString(WebDriverCommandProcessor.java:236)
           oracle.adf.view.rich.automation.selenium.RichSelenium.getRichComponentProperty(RichSelenium.java:139)
           oracle.adf.view.rich.automation.selenium.RichSelenium.getRichComponentProperty(RichSelenium.java:151)
      Does anybody know, how to get all methods of RichSelenium working?

      Thanks
      Christoph