Flowcharts Controller

abstract The Flowcharts Controller helps identify elements, interact with the Application Under Test and implement automation steps.
The Add Step dialog has an Inspect Element tab where we can identify and interact with the application. To work with the application and identify elements, we can keep the application window and Flowcharts window side by side.
However since the Flowcharts window is big, this can be inconvenient - especially on Mac, since focus is needed to interact with the browser.

Flowcharts Controller solves this problem.

In-Page Controller

Flowcharts Controller can be launched from a web application using ALT + Double Click (pressing ALT key and Double Clicking) on the page.
For Mac, use Alt/Option + Double Click.

This will open a Controller inside the page itself.

Controller Functionality

Pop-out Controller

When working with multiple browser windows or when working with other modes, we may need the Controller to be separate from the web application window.

Anchor Button & Relation API

Relation APIs let Sahi relate one element to another.

Identify an element with relation to anoher element:

Steps:
  1. First identify the relative element by CTRL + Mouse hover method.
    • Example: Identify the label 'First Name'
  2. To use Relation API, press the Anchor button. The relative element will be added to anchor elements list.
  3. Next, identify the required element using the same CTRL + Mouse hover method.
    • Example: Identify the text box 'firstname'
  4. Click on the dropdown arrow near anchor button to see list of anchor elements.
  5. For each anchor element a specific relation API can be selected and offset can also be given if needed.
    • If no relation API has been selected for an anchor element then it will not be used during identification.
  6. CTRL + Hover over the next element, it will generate an accessor with the selected anchor elements and there relation APIs.
    • If it fails to identify the element with given relations, then an error will be generated in the accessor field.

Use multiple Anchor elements:

Steps:
  1. Identify the element with relation to an element.
    • Example: Identify the 'MP3 Player' to be rightOf to 'Cameras'.
  2. Now, identify the same element with relation to another element.
    • Example: Identify the 'MP3 player' to be inside the 'Nav Bar'.
  3. Similarly more layers of relative identification can be used.