Skip to content

Commit

Permalink
update login page
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-em authored Dec 11, 2024
1 parent dcc305d commit 0a1cabd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/onecomics/webpages/LoginPage.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package com.onecomics.webpages;

import java.time.Duration;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;

import com.onecomics.projectmethods.ProjectMethods;
Expand Down Expand Up @@ -59,6 +64,8 @@ public void login(String id, String password) throws InterruptedException {
clickElement(preRegisterBtn);
Thread.sleep(2000);
// sendKeys(emailIdTxtBox, id);
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.elementToBeClickable(By.id("signInName")));
emailIdTxtBox.sendKeys(id);
sendKeys(passwordTxtBox, password);
clickElement(signInBtn);
Expand Down

0 comments on commit 0a1cabd

Please sign in to comment.