Skip to content

Page object#3

Open
Hanarlo wants to merge 4 commits into
masterfrom
page-object
Open

Page object#3
Hanarlo wants to merge 4 commits into
masterfrom
page-object

Conversation

@Hanarlo
Copy link
Copy Markdown
Owner

@Hanarlo Hanarlo commented Jan 18, 2024

No description provided.

Comment thread src/test/java/bse_entity/HeadBar.java Outdated
private By numOfGoodsInCartLocator = By.className("shopping_cart_badge");
private By cartBtnLocator = By.id("shopping_cart_container");

public WebElement getNumOfGoodsInCart(){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Форматирование - не забывай о пробелах перед телом метода

Comment thread src/test/java/page/Checkout.java Outdated
private By finishBtn = By.id("finish");

private By completeBanner = By.className("complete-header");
private By ItemInCheckoutLocator = By.xpath("//a[@id='item_4_title_link']");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем здесь XPath - если тут явный ID есть

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants