Wednesday, November 10, 2010

OpenScript Mechanism to identify Objects

OpenScript has got its own mechanism to identify the objects, based on the type of application we are trying to automate.

Basic mechanism of identifying an object is OpenScript reads the object and generates an XPath correspondingly. Where in the XPath generating mechanism differs w.r.t application and listing them below in  brief.


  • Web based applications
    • Each and every object is identified based on its actual html code, and generates an xpath based on it, as in for example there is a text field present in a webpage. It would be actually present in a form which is present in webpage document.                                                                                                                                 Example xpath for this textfield would be:                                                                                       /web:window[@index='0']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_text[@name='textfieldname'] 
  • Oracle Application Forms
    • Each and every object is uniquely identified by the name which is given in backend of OracleApps. which gives a greater advantage of reducing the customization of recorded script.

1 comment:

  1. Hi srinivas,

    Is there any way to identify objects in OATS with other than xpath...as we can identify objects in selenium with css and locators

    ReplyDelete