Skip to content

Commit

Permalink
Update Main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszSzpyt committed Jan 20, 2025
1 parent 169a1ee commit ad95bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/frontend/rollup-pages/Main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WebDriver } from "selenium-webdriver";
import { getEnvironmentRequiredVars } from "../../utils";
import { getEnvironmentRequiredVars, sleep } from "../../utils";
import {
buildDataTestIdXpath,
buildXpathByElementText,
Expand Down Expand Up @@ -43,6 +43,7 @@ export class Main {
async skipWelcomeMessage() {
const welcomeButton = buildXpathByElementText("button", "Start trading");
const welcomeButtonAlternate = buildXpathByElementText("button", "START TRADING");
await sleep(3000);
try {
await waitForElementVisible(this.driver, welcomeButton, 5000);
await clickElement(this.driver, welcomeButton);
Expand Down

0 comments on commit ad95bd8

Please sign in to comment.