![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Application ElementAssistant with fluent methods to help you manipulate AutomationElements in callback EventHandlers.
Instantiated with GPAL.ElementAssistant.
More...
Public Member Functions | |
| IAllowElementSettingsAndActions | LeftClick () |
| Left click the GPALAutomationElement. | |
| IAllowElementSettingsAndActions | LeftClick (Enums.ModifierKeys modifierKeys) |
| Left click the GPALAutomationElement, optionally emulating pressing a modifier key at the same time. | |
| IAllowElementSettingsAndActions | LeftDoubleClick () |
| Left double click the GPALAutomationElement. | |
| IAllowElementSettingsAndActions | RightClick () |
| Right click the GPALAutomationElement. | |
| IAllowElementSettingsAndActions | ScrollHorizontal (System.Windows.Automation.ScrollAmount scrollAmount) |
| Scroll the GPALAutomationElement horizontally by an increment amount. | |
| IAllowElementSettingsAndActions | ScrollHorizontalPercent (int percent) |
| Scroll the GPALAutomationElement horizontally to the given percentage of its scrollable range. | |
| IAllowElementSettingsAndActions | ScrollVertical (System.Windows.Automation.ScrollAmount scrollAmount) |
| Scroll the GPALAutomationElement vertically by an increment amount. | |
| IAllowElementSettingsAndActions | ScrolVerticalPercent (int percent) |
| Scroll the GPALAutomationElement vertically to the given percentage of its scrollable range. | |
| IAllowElementSetting | ForSelector (Selector selector) |
| The selector associated with the webelement(s) you are acting upon. Used for the OffestX and OffsetY properties and Information and Exceptional channel messages. | |
| IAllowElementSettingsAndActions | WithElement (IGPALAutomationElement AutomationElement) |
| Define the GPALAutomationElement to act upon. | |
| IAllowElementSettingsAndActions | FillInFrom (string inputText) |
| Fill In (Ovewrite) text of the input GPALAutomationElement defined with .WithElement. | |
| IAllowElementSettingsAndActions | InsertFrom (string inputText) |
| Insert text at the beginning of the input GPALAutomationElement defined with .WithElement. | |
| IAllowElementSettingsAndActions | AppendFrom (string inputText) |
| Appends text to the end of the input GPALAutomationElement defined with .WithElement. | |
| IAllowElementSettingsAndActions | SendKeyCode (byte keyCode) |
| Emulate pressing a special key like Home, End, Page Down. Use GPAL.VK_ defined virual keycodes or send any you want to send. https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes. | |
| IAllowElementSettingsAndActions | PressModifierKey (ModifierKeys modifierKeys) |
| Press a modifier key: Alt, Control, Shift. | |
| IAllowElementSettingsAndActions | ReleaseModifierKey (ModifierKeys modifierKeys) |
| Release a modifier key: Alt, Control, Shift. | |
| Public Member Functions inherited from GenerallyPositive.Application.IAllowElementActions | |
| IAllowElementSettingsAndActions | LeftClick (ModifierKeys modifierKeys) |
Properties | |
| IAllowElementSettingsAndActions | WithHardware [get] |
| Interact with the GPALAutomationElement emulating hardware, not using UIAutomation;. | |
Application ElementAssistant with fluent methods to help you manipulate AutomationElements in callback EventHandlers.
Instantiated with GPAL.ElementAssistant.
| application | Application object associated with the elements/callback |
Definition at line 53 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.AppendFrom | ( | string | inputText | ) |
Appends text to the end of the input GPALAutomationElement defined with .WithElement.
| inputText |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 235 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.FillInFrom | ( | string | inputText | ) |
Fill In (Ovewrite) text of the input GPALAutomationElement defined with .WithElement.
| inputText |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 212 of file ElementAssistant.cs.
| IAllowElementSetting GenerallyPositive.Application.ElementAssistant.ForSelector | ( | Selector | selector | ) |
The selector associated with the webelement(s) you are acting upon.
Used for the OffestX and OffsetY properties and Information and Exceptional channel messages.
| selector |
Implements GenerallyPositive.Application.IAllowForSelector.
Definition at line 190 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.InsertFrom | ( | string | inputText | ) |
Insert text at the beginning of the input GPALAutomationElement defined with .WithElement.
| inputText |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 224 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.LeftClick | ( | ) |
Left click the GPALAutomationElement.
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 84 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.LeftClick | ( | Enums.ModifierKeys | modifierKeys | ) |
Left click the GPALAutomationElement, optionally emulating pressing a modifier key at the same time.
| modifierKeys | Optional modifier key press |
Definition at line 99 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.LeftDoubleClick | ( | ) |
Left double click the GPALAutomationElement.
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 113 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.PressModifierKey | ( | ModifierKeys | modifierKeys | ) |
Press a modifier key: Alt, Control, Shift.
| modifierKeys | Alt, Control, Shift |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 259 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.ReleaseModifierKey | ( | ModifierKeys | modifierKeys | ) |
Release a modifier key: Alt, Control, Shift.
| modifierKeys | Alt, Control, Shift |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 270 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.RightClick | ( | ) |
Right click the GPALAutomationElement.
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 129 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.ScrollHorizontal | ( | System.Windows.Automation.ScrollAmount | scrollAmount | ) |
Scroll the GPALAutomationElement horizontally by an increment amount.
| scrollAmount | Amount to scroll (e.g. LargeIncrement/SmallDecrement) |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 146 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.ScrollHorizontalPercent | ( | int | percent | ) |
Scroll the GPALAutomationElement horizontally to the given percentage of its scrollable range.
| percent | Percentage of the total horizontal content area [0-100] |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 157 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.ScrollVertical | ( | System.Windows.Automation.ScrollAmount | scrollAmount | ) |
Scroll the GPALAutomationElement vertically by an increment amount.
| scrollAmount | Amount to scroll (e.g. LargeIncrement/SmallDecrement) |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 168 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.ScrolVerticalPercent | ( | int | percent | ) |
Scroll the GPALAutomationElement vertically to the given percentage of its scrollable range.
| percent | Percentage of the total vertical content area [0-100] |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 179 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.SendKeyCode | ( | byte | keyCode | ) |
Emulate pressing a special key like Home, End, Page Down.
Use GPAL.VK_ defined virual keycodes or send any you want to send.
https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes.
| keyCode |
Implements GenerallyPositive.Application.IAllowElementActions.
Definition at line 249 of file ElementAssistant.cs.
| IAllowElementSettingsAndActions GenerallyPositive.Application.ElementAssistant.WithElement | ( | IGPALAutomationElement | AutomationElement | ) |
Define the GPALAutomationElement to act upon.
| GPALAutomationElement | The GPALAutomationElement to interact with |
Implements GenerallyPositive.Application.IAllowElementSetting.
Definition at line 202 of file ElementAssistant.cs.
|
get |
Interact with the GPALAutomationElement emulating hardware, not using UIAutomation;.
Implements GenerallyPositive.Application.IAllowElementSetting.
Definition at line 72 of file ElementAssistant.cs.