๐Ÿ“ฆ SeleniumHQ / selenium-maven-release-test

๐Ÿ“„ BeerConfirmPageObject.java ยท 29 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29package actions;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author Kristian Rosenvold
 */
public class BeerConfirmPageObject extends PageObject
{

    WebElement beer;


    public BeerConfirmPageObject(PageObjectContext pageObjectContext) {
        super(pageObjectContext);
        this.beer = waitForElement(By.id("beer"));
    }


    public BeerPageObject goBackToBeer()
    {
        beer.click();
        return new BeerPageObject(getPageObjectContext());
    }

}