diff --git a/reports/index.html b/reports/index.html index 6435b8a..66086cf 100644 --- a/reports/index.html +++ b/reports/index.html @@ -35,7 +35,7 @@ Zenful
  • -Sep 30, 2024 11:04:34 PM +Oct 1, 2024 09:45:03 PM
  • @@ -81,7 +81,7 @@

    Test msg

    - 11:04:57 PM / 00:00:00:000 + 9:45:05 PM / 00:00:00:000 Pass

    @@ -90,8 +90,8 @@
    Test msg
    -09.30.2024 11:04:57 PM -09.30.2024 11:04:57 PM +10.01.2024 9:45:05 PM +10.01.2024 9:45:05 PM 00:00:00:000 · #test-id=1 @@ -115,13 +115,13 @@

    Started

    -

    Sep 30, 2024 11:04:34 PM

    +

    Oct 1, 2024 09:45:03 PM

    Ended

    -

    Sep 30, 2024 11:04:58 PM

    +

    Oct 1, 2024 09:45:06 PM

    diff --git a/src/main/java/zacksolutions/pages/HomePage.java b/src/main/java/zacksolutions/pages/HomePage.java index 25d17f7..0c808d2 100644 --- a/src/main/java/zacksolutions/pages/HomePage.java +++ b/src/main/java/zacksolutions/pages/HomePage.java @@ -6,6 +6,9 @@ import org.openqa.selenium.support.PageFactory; import zacksolutions.base.Initialization; import zacksolutions.base.JokesAPI; +import static zacksolutions.base.JokesAPI.punchline; +import static zacksolutions.base.JokesAPI.setup; + public class HomePage extends Initialization { // Using PageFactory Object Model we get our elemets @FindBy(id = "message") @@ -24,9 +27,8 @@ public class HomePage extends Initialization { // Actions public void insertText() throws InterruptedException { - JokesAPI jokes = new JokesAPI(); test = extent.createTest("Test msg"); - message.sendKeys(JokesAPI.setup + " ==> " + JokesAPI.punchline); + message.sendKeys(setup+ " ==> " + punchline); button.click(); extent.flush(); }