wip
This commit is contained in:
@ -13,7 +13,8 @@ export class WebDriverUtils {
|
||||
* @param seconds Number of seconds to wait
|
||||
* @returns Promise that resolves after the specified time
|
||||
*/
|
||||
static async wait(seconds: number): Promise<void> {
|
||||
static async wait(seconds: number = 3): Promise<void> {
|
||||
seconds = Math.floor(Math.random() * 1000) % 3 + 3;
|
||||
console.log(`Waiting for ${seconds} seconds...`);
|
||||
return new Promise(resolve => setTimeout(resolve, seconds * 1000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user