mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +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
|
||||
for (let i = 0; i < 7; i++) {
|
||||
await driver.sendKeys([Key.Tab]);
|
||||
sendKeys('{TAB}');
|
||||
await sleep(200);
|
||||
}
|
||||
await driver.sendKeys([Key.Enter]);
|
||||
a sendKeys('{ENTER}');
|
||||
console.log('Clicked Accept');
|
||||
|
||||
await sleep(3000);
|
||||
|
||||
Reference in New Issue
Block a user