Specific Examples - EcoSys - Help

EcoSys Functional Automation Framework

Language
English
Product
EcoSys
Search by Category
Help
EcoSys Version
9.1

Runtime Parameters

  1. Using Dev tools, highlight the parameters label.

    This will highlight a line in the DOM that is a span.

  2. Look up the hierarchy and find the first td tag. Take the value from title and use it in this xpath template:

    //*[@title='title value']

Buttons

  1. Using Dev tools, highlight the blue button.

  2. In the highlighted DOM, use the value from the data-qa-locator in below XPath template:

    //*[@data-qa-locator=’data-qa-locator value']

Spreadsheet with no freeze columns

  1. Using Dev tools, highlight the entire spreadsheet. This will highlight a line in the DOM.

  2. Locate the highlighted line and look at is Parents Div. It will have an attribute data-short-name which can be used to replace the <value> in the below xpath template:

    //*[@data-short-name='data-short-name value']/div[2]/table/tbody

Spreadsheet with freeze columns

When a spreadsheet has frozen columns, it appears like a split spreadsheet. For many keywords that work with spreadsheets, you must provide both the left and right spreadsheet xPath to the keyword.

To get the proper xPath, repeat the following steps for the left and right hand side generating two sets of xPath.

  1. Start with the left hand side of the spreadsheet and use the selector to click on the spreadsheet so it highlights the column header as below and has the div.hdrcell popup.

    The DOM XML in Chrome dev tools looks as follows.

    The div class (which is highlighted by a black arrow) is originally selected.

  2. Look up the hierarchy and find the div that has an id that starts with wks.

  3. Locate the attribute on this line data-short-name, it can be used to replace the <value> in the below xpath template for the left hand part of the spreadsheet.

    //*[@data-short-name='data-short-name value']/div/div[1]/div[2]/div/div[2]/table/tbody

  4. Use the same value in this xpath for the spreadsheet on the right side.

    //*[@data-short-name='data-short-name value’']/div/div[2]/div[2]/div/div[2]/table/tbody