Skip to content

Develop - #1

Open
Dgoni911 wants to merge 3 commits into
mainfrom
develop
Open

Develop#1
Dgoni911 wants to merge 3 commits into
mainfrom
develop

Conversation

@Dgoni911

Copy link
Copy Markdown
Owner

No description provided.

Comment thread locators.py
Comment on lines +17 to +21
sauces_ul = (By.XPATH, "(.//ul[@class = 'BurgerIngredients_ingredients__list__2A-mT'])[2]") # Выбор соусов на главной странице
bun = (By.XPATH, ".//h2[text() = 'Булки']") # Текст булки на главной странице
bun_ul = (By.XPATH, "(.//ul[@class = 'BurgerIngredients_ingredients__list__2A-mT'])[1]") # Выбор булок на главной странице
topping = (By.XPATH, ".//h2[text() = 'Начинки']") # Текст начинки на главной странице
topping_ul = (By.XPATH, "(.//ul[@class = 'BurgerIngredients_ingredients__list__2A-mT'])[3]") # Выбор начинок на главной странице

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Необходимо исправить здесь и далее: не стоит использовать в локаторах путь от рута, абсолютный путь или индексы элемента. Это делает локатор очень хрупким

Comment thread locators.py
Comment on lines +40 to +41
name_input = (By.XPATH, "(.//input[@name = 'name'])[1]") # Поле ввода имени
email_input = (By.XPATH, "(.//input[@name = 'name'])[2]") # Поле ввода email

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Необходимо исправить здесь и далее: не стоит использовать в локаторах путь от рута, абсолютный путь или индексы элемента. Это делает локатор очень хрупким

Comment thread tests/constructor.py
Comment thread urls.py
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