Class ImplementRibbonMenu
Implement the Ribbon Menu with each Tab, under each tab each button
Inheritance
Inherited Members
Namespace: Quark.XA.Core.AutomationProject
Assembly: Quark.XA.Core.AutomationProject.dll
Syntax
public class ImplementRibbonMenu
Constructors
ImplementRibbonMenu(ref Application)
Declaration
public ImplementRibbonMenu(ref Application application)
Parameters
| Type | Name | Description |
|---|---|---|
| Application | application |
Methods
ClickCheckbox(String, String)
Enable or disable Checkbox on menu
Declaration
public void ClickCheckbox(string toolbarOption, string checkboxName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toolbarOption | Container Name property |
| System.String | checkboxName | Checkbox Name property |
ClickComboBox(String)
Click on arrow button of combo box
Declaration
public void ClickComboBox(string comboBoxName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | comboBoxName | Combo box name property |
ClickDropDownButton(String, String, Int32)
Click on menu dropdown buttons on tool bar
Declaration
public void ClickDropDownButton(string groupBoxoption, string dropdownButtonOption, int numberOfDownKeys = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupBoxoption | |
| System.String | dropdownButtonOption | Dropdown button Name property |
| System.Int32 | numberOfDownKeys |
ClickFunctionButton(String, String, Boolean, Boolean)
Click on menu buttons on tool bar
Declaration
public void ClickFunctionButton(string toolbarOption, string functionButtonOption, bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toolbarOption | Container Name property |
| System.String | functionButtonOption | Button Name property |
| System.Boolean | perf | |
| System.Boolean | log |
ClickGroup(String)
Click on groups
Declaration
public void ClickGroup(string groupName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupName | Group name property |
ClickMenuItem(String, String, Int32, Boolean, Boolean)
Click on split buttons on tool bar
Declaration
public void ClickMenuItem(string groupOption, string MenuItemOption, int numberOfDownKeys = 0, bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupOption | Container Name property |
| System.String | MenuItemOption | Split button Name property |
| System.Int32 | numberOfDownKeys | |
| System.Boolean | perf | |
| System.Boolean | log |
ClickMoreOptionsOfSplitButton(String, String)
Click on split buttons on tool bar
Declaration
public void ClickMoreOptionsOfSplitButton(string groupOption, string splitButtonOption)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupOption | Container Name property |
| System.String | splitButtonOption | Split button Name property |
ClickSplitButton(String, String, Int32, Boolean, Boolean)
Click on split buttons on tool bar
Declaration
public void ClickSplitButton(string groupOption, string splitButtonOption, int numberOfDownKeys = 0, bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupOption | Container Name property |
| System.String | splitButtonOption | Split button Name property |
| System.Int32 | numberOfDownKeys | |
| System.Boolean | perf | |
| System.Boolean | log |
ClickTab(String)
Perform click operation on Tab[Home, Insert, Table, Review, View]
Declaration
public void ClickTab(string tabName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tabName | Name property of Tab |
ClickTabFromFileTab(String)
Click operation on Tab if file tab window[Backstage or RibbonClient] is invoked
Declaration
public void ClickTabFromFileTab(string tabName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tabName | Name property of Tab |
DocumentRecoveryWindow(String, String)
Double click to open document in document recovery window
Declaration
public void DocumentRecoveryWindow(string docName, string recoveryType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | docName | Document name to open |
| System.String | recoveryType | Recovery type |
GetSelectedItemFromCombo(String, String)
Get the selected item of combo box
Declaration
public bool GetSelectedItemFromCombo(string comboBoxName, string selectedItem)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | comboBoxName | Combo box name property |
| System.String | selectedItem | Selected item in combo box |
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsButtonPressed(String, String)
Check if a function button is pressed/selected on the menu
Declaration
public bool IsButtonPressed(string toolbarOption, string functionButtonOption)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toolbarOption | Container Name property |
| System.String | functionButtonOption | Button Name property |
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsFunctionButtonDisabled(String, String)
Check function button is disabled on menu
Declaration
public bool IsFunctionButtonDisabled(string toolbarOption, string functionButtonOption)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toolbarOption | Container Name property |
| System.String | functionButtonOption | Button Name property |
Returns
| Type | Description |
|---|---|
| System.Boolean |
VerifyFunctionButtonState(String, String, Boolean)
Check to see if button state is enabled or disabled
Declaration
public void VerifyFunctionButtonState(string toolbarOption, string functionButtonOption, bool shouldEnabled = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toolbarOption | Container Name property |
| System.String | functionButtonOption | Button Name property |
| System.Boolean | shouldEnabled | If verifyEnabled is true then button state should be enabled else it should be disabled |