|
9 | 9 | "categories": [ |
10 | 10 | "WebDriver" |
11 | 11 | ], |
| 12 | + "context": { |
| 13 | + "integration": { |
| 14 | + "sequentialWorkflow": { |
| 15 | + "$type": "Action", |
| 16 | + "componentType": "task", |
| 17 | + "iconProvider": "keyboard", |
| 18 | + "model": "ActionRuleModel" |
| 19 | + } |
| 20 | + } |
| 21 | + }, |
12 | 22 | "description": [ |
13 | 23 | "### Purpose", |
14 | 24 | "", |
|
37 | 47 | "| Comprehensive Test Scenarios | In automation testing scenarios for applications, the `SendKeyboardKey` plugin is invaluable. It allows scripts to dynamically control keyboard inputs, leading to more comprehensive test coverage, especially in scenarios involving input fields. |", |
38 | 48 | "| Ensuring UI Stability | Post-user interactions, such as entering text into input fields, the plugin ensures that the UI remains stable for subsequent validations. This is crucial for accurately assessing the impact of keyboard inputs on the application's state. |" |
39 | 49 | ], |
40 | | - "context": { |
41 | | - "integration": { |
42 | | - "sequentialWorkflow": { |
43 | | - "$type": "Action", |
44 | | - "componentType": "task", |
45 | | - "iconProvider": "keyboard", |
46 | | - "model": "ActionRuleModel" |
47 | | - } |
48 | | - } |
49 | | - }, |
50 | 50 | "examples": [ |
51 | 51 | { |
52 | 52 | "description": [ |
53 | 53 | "Simulate pressing the `Enter` key on the HTML element identified by the CSS selector `#KeyboardKeyOutcome`." |
54 | 54 | ], |
55 | 55 | "rule": { |
56 | | - "Argument": "Enter", |
57 | | - "Locator": "CssSelector", |
58 | | - "OnElement": "#KeyboardKeyOutcome", |
59 | | - "PluginName": "SendKeyboardKey" |
| 56 | + "argument": "Enter", |
| 57 | + "locator": "CssSelector", |
| 58 | + "onElement": "#KeyboardKeyOutcome", |
| 59 | + "pluginName": "SendKeyboardKey" |
60 | 60 | } |
61 | 61 | }, |
62 | 62 | { |
63 | 63 | "description": [ |
64 | 64 | "Simulate pressing the `Enter` key on the HTML element identified by the CSS selector `#KeyboardKeyOutcome`." |
65 | 65 | ], |
66 | 66 | "rule": { |
67 | | - "Argument": "{{$ --Key:Enter}}", |
68 | | - "Locator": "CssSelector", |
69 | | - "OnElement": "#KeyboardKeyOutcome", |
70 | | - "PluginName": "SendKeyboardKey" |
| 67 | + "argument": "{{$ --Key:Enter}}", |
| 68 | + "locator": "CssSelector", |
| 69 | + "onElement": "#KeyboardKeyOutcome", |
| 70 | + "pluginName": "SendKeyboardKey" |
71 | 71 | } |
72 | 72 | }, |
73 | 73 | { |
74 | 74 | "description": [ |
75 | 75 | "Simulate pressing the `Enter` key followed by the `Backspace` key on the HTML element identified by the CSS selector `#KeyboardKeyOutcome`." |
76 | 76 | ], |
77 | 77 | "rule": { |
78 | | - "Argument": "{{$ --Key:Enter --Key:Backspace}}", |
79 | | - "Locator": "CssSelector", |
80 | | - "OnElement": "#KeyboardKeyOutcome", |
81 | | - "PluginName": "SendKeyboardKey" |
| 78 | + "argument": "{{$ --Key:Enter --Key:Backspace}}", |
| 79 | + "locator": "CssSelector", |
| 80 | + "onElement": "#KeyboardKeyOutcome", |
| 81 | + "pluginName": "SendKeyboardKey" |
82 | 82 | } |
83 | 83 | }, |
84 | 84 | { |
|
87 | 87 | "This simulated keyboard input is targeted at the HTML element identified by the CSS selector `#KeyboardKeyOutcome` on a web page." |
88 | 88 | ], |
89 | 89 | "rule": { |
90 | | - "Argument": "{{$ --Key:Enter --Key:Backspace --Delay:4000}}", |
91 | | - "Locator": "CssSelector", |
92 | | - "OnElement": "#KeyboardKeyOutcome", |
93 | | - "PluginName": "SendKeyboardKey" |
| 90 | + "argument": "{{$ --Key:Enter --Key:Backspace --Delay:4000}}", |
| 91 | + "locator": "CssSelector", |
| 92 | + "onElement": "#KeyboardKeyOutcome", |
| 93 | + "pluginName": "SendKeyboardKey" |
94 | 94 | } |
95 | 95 | }, |
96 | 96 | { |
|
99 | 99 | "This simulated keyboard input is targeted at the HTML element identified by the CSS selector `#KeyboardKeyOutcome` on a web page." |
100 | 100 | ], |
101 | 101 | "rule": { |
102 | | - "Argument": "{{$ --Key:Enter --Key:Backspace --Delay:00:00:04}}", |
103 | | - "Locator": "CssSelector", |
104 | | - "OnElement": "#KeyboardKeyOutcome", |
105 | | - "PluginName": "SendKeyboardKey" |
| 102 | + "argument": "{{$ --Key:Enter --Key:Backspace --Delay:00:00:04}}", |
| 103 | + "locator": "CssSelector", |
| 104 | + "onElement": "#KeyboardKeyOutcome", |
| 105 | + "pluginName": "SendKeyboardKey" |
106 | 106 | } |
107 | 107 | }, |
108 | 108 | { |
109 | 109 | "description": [ |
110 | 110 | "First clear the content of the input element identified by the CSS selector `#KeyboardKeyOutcome` and then simulate pressing the `Enter` key." |
111 | 111 | ], |
112 | 112 | "rule": { |
113 | | - "Argument": "{{$ --Key:Enter --Clear}}", |
114 | | - "Locator": "CssSelector", |
115 | | - "OnElement": "#KeyboardKeyOutcome", |
116 | | - "PluginName": "SendKeyboardKey" |
| 113 | + "argument": "{{$ --Key:Enter --Clear}}", |
| 114 | + "locator": "CssSelector", |
| 115 | + "onElement": "#KeyboardKeyOutcome", |
| 116 | + "pluginName": "SendKeyboardKey" |
117 | 117 | } |
118 | 118 | }, |
119 | 119 | { |
120 | 120 | "description": [ |
121 | 121 | "First clear the content of the input element identified by the CSS selector `#KeyboardKeyOutcome` using `NativeClear` functionality and then simulate pressing the `Enter` key." |
122 | 122 | ], |
123 | 123 | "rule": { |
124 | | - "Argument": "{{$ --Key:Enter --NativeClear}}", |
125 | | - "Locator": "CssSelector", |
126 | | - "OnElement": "#KeyboardKeyOutcome", |
127 | | - "PluginName": "SendKeyboardKey" |
| 124 | + "argument": "{{$ --Key:Enter --NativeClear}}", |
| 125 | + "locator": "CssSelector", |
| 126 | + "onElement": "#KeyboardKeyOutcome", |
| 127 | + "pluginName": "SendKeyboardKey" |
128 | 128 | } |
129 | 129 | } |
130 | 130 | ], |
|
176 | 176 | "It allows you to define a sequence of keyboard interactions, including the keys to be pressed and any additional actions." |
177 | 177 | ], |
178 | 178 | "mandatory": true, |
179 | | - "name": "Argument", |
| 179 | + "name": "argument", |
180 | 180 | "type": "String" |
181 | 181 | }, |
182 | 182 | { |
|
185 | 185 | "Specifies the strategy or method used to locate the element on which the keyboard actions will be simulated during automation." |
186 | 186 | ], |
187 | 187 | "mandatory": false, |
188 | | - "name": "Locator", |
| 188 | + "name": "locator", |
189 | 189 | "type": "String" |
190 | 190 | }, |
191 | 191 | { |
|
194 | 194 | "It indicates the target element where the simulated keyboard interactions should take place." |
195 | 195 | ], |
196 | 196 | "mandatory": true, |
197 | | - "name": "OnElement", |
| 197 | + "name": "onElement", |
198 | 198 | "type": "String" |
199 | 199 | } |
200 | 200 | ], |
|
0 commit comments