fix: 20
jenkins/ZenProject/pipeline/head This commit looks good

This commit is contained in:
2024-10-01 21:47:17 -04:00
parent 76acd5ae9e
commit 4a5405049c
2 changed files with 10 additions and 8 deletions
@@ -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();
}