Zen fix: 1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package zacksolutions.pages;
|
||||
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.FindBy;
|
||||
import org.openqa.selenium.support.PageFactory;
|
||||
import zacksolutions.base.Initialization;
|
||||
|
||||
public class HomePage extends Initialization {
|
||||
@FindBy(id="message")
|
||||
WebElement message;
|
||||
|
||||
@FindBy(css="button[type='submit']")
|
||||
WebElement button;
|
||||
|
||||
@FindBy(css="tbody tr:nth-child(1) td:nth-child(1)")
|
||||
WebElement ConfirmText;
|
||||
|
||||
//Initialization
|
||||
public HomePage(){
|
||||
PageFactory.initElements(driver, this);
|
||||
}
|
||||
|
||||
//Actions
|
||||
public void insertText() throws InterruptedException {
|
||||
message.sendKeys("4 8 15 16 23 42");
|
||||
button.click();
|
||||
}
|
||||
public String textConfirmation(){
|
||||
return ConfirmText.getText();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user