Created
December 10, 2015 10:52
-
-
Save IharKrasnik/56b69074189c17487a93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LaptopPage extends AbstractPage { | |
| @FindBy(xpath="//ul[@class='schema-filter__list']//span[text()='Apple']") | |
| private ExtendedWebElement appleCheck; | |
| @FindBy(xpath="//div[@id='schema-products']/div[1]//span[@class='i-checkbox__faux']") | |
| private ExtendedWebElement firstItemCheck; | |
| @FindBy(xpath="//div[@id='schema-products']/div[2]//span[@class='i-checkbox__faux']") | |
| private ExtendedWebElement secondItemCheck; | |
| @FindBy(xpath="//a[contains(@class,'compare-button__sub') and contains(.,'сравнении') ]") | |
| private ExtendedWebElement compairButton; | |
| public LaptopPage(WebDriver driver) { | |
| super(driver); | |
| setPageAbsoluteURL("http://catalog.onliner.by/notebook"); | |
| } | |
| public void comparePC(){ | |
| appleCheck.click(); | |
| firstItemCheck.click(); | |
| secondItemCheck.click(); | |
| pause(5); | |
| compairButton.click(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment