Форматирование

Radislav 2025-10-12 13:01:38 +03:00
parent 3cb8eabfd0
commit 5ed2aaea12
1 changed files with 5 additions and 5 deletions

View File

@ -37,23 +37,23 @@ class UserCard(BaseComponent):
# Обновленные локаторы согласно новой структуре карточки
self.current_user_name = Text(
page,
card_locator.locator("xpath=/div/div[1]"), # Изменено с div[2] на div[1]
card_locator.locator("xpath=/div/div[1]"),
"current user name"
)
self.current_user_role = Text(
page,
card_locator.locator("xpath=/div/div[2]"), # Изменено с div[3] на div[2]
card_locator.locator("xpath=/div/div[2]"),
"current user role"
)
self.login_time = Text(
page,
card_locator.locator("xpath=/div/div[3]"), # Изменено с div[4] на div[3]
card_locator.locator("xpath=/div/div[3]"),
"login time"
)
self.session_time = Text(
page,
card_locator.locator("xpath=/div/div[4]"), # Изменено с div[5] на div[4]
"session time" # Исправлено имя с "current user name" на "session time"
card_locator.locator("xpath=/div/div[4]"),
"session time"
)
self.logout_button = Button(
page,