MainFrame: set execution context to MainFrame
Tag: MainFrame
The MainFrame action forces the current automation context to be set to the main frame.
When Ytria automation launches a sapio365 module (e.g. Users after <ShowUsers>, the automation context moves to this module.
To run a new action only available from the main window (e.g. launching second Groups module after having launched a Group module), enclose the new module automation in <Mainframe>.
<Mainframe/>
Example Script
<ytriaAutomation Application="sapio365">
<ShowGroups>
<GroupBy ColumnID="TYP"/>
<GroupBy ColumnID="AES"/>
<Mainframe>
<ShowGroups>
<GroupBy ColumnID="TYP"/>
<GroupBy ColumnID="AES"/>
<Mainframe>
<!-- here do mainframe stuff like SendMail...-->
</Mainframe>
<Sort ColumnID="displayName" ascending="true"/>
</ShowGroups>
</Mainframe>
<Sort ColumnID="displayName" ascending="true"/>
</ShowGroups>
</ytriaAutomation>
A MainFrame action cannot contain another MainFrame action.