Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pages;
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.WebElement;
- import org.openqa.selenium.interactions.Actions;
- import org.openqa.selenium.support.FindBy;
- import org.openqa.selenium.support.PageFactory;
- import org.openqa.selenium.support.ui.ExpectedConditions;
- import org.openqa.selenium.support.ui.WebDriverWait;
- public class _TestBase {
- @FindBy (css="#primary-header > div:nth-of-type(3)") WebElement myAccount;
- @FindBy (linkText="Moje zamówienia") WebElement myOrders;
- @FindBy (linkText="Moje konto") WebElement accountIndex;
- @FindBy (linkText="Adresy dostaw") WebElement addresses;
- @FindBy (linkText="Wyloguj się") WebElement logOut;
- @FindBy (css="#blocker") WebElement blocker;
- //@FindBy (tagName="title") WebElement title;
- public void clickMyAccount() throws InterruptedException {
- Thread.sleep(1000);
- myAccount.click();
- }
- public void clickMyOrders(){
- myOrders.click();
- }
- public void clickAccountIndex(){
- accountIndex.click();
- }
- public void clickAddresses(){
- addresses.click();
- }
- public void clickLogOut(){
- logOut.click();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement