mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Refactor key sending to use sendKeys function
This commit is contained in:
@@ -104,10 +104,10 @@ async function runSSD() {
|
|||||||
|
|
||||||
// Page 2: Tab through the remaining toggles to reach the "Accept" button
|
// Page 2: Tab through the remaining toggles to reach the "Accept" button
|
||||||
for (let i = 0; i < 7; i++) {
|
for (let i = 0; i < 7; i++) {
|
||||||
await driver.sendKeys([Key.Tab]);
|
sendKeys('{TAB}');
|
||||||
await sleep(200);
|
await sleep(200);
|
||||||
}
|
}
|
||||||
await driver.sendKeys([Key.Enter]);
|
a sendKeys('{ENTER}');
|
||||||
console.log('Clicked Accept');
|
console.log('Clicked Accept');
|
||||||
|
|
||||||
await sleep(3000);
|
await sleep(3000);
|
||||||
|
|||||||
Reference in New Issue
Block a user