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

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( self.current_user_name = Text(
page, page,
card_locator.locator("xpath=/div/div[1]"), # Изменено с div[2] на div[1] card_locator.locator("xpath=/div/div[1]"),
"current user name" "current user name"
) )
self.current_user_role = Text( self.current_user_role = Text(
page, page,
card_locator.locator("xpath=/div/div[2]"), # Изменено с div[3] на div[2] card_locator.locator("xpath=/div/div[2]"),
"current user role" "current user role"
) )
self.login_time = Text( self.login_time = Text(
page, page,
card_locator.locator("xpath=/div/div[3]"), # Изменено с div[4] на div[3] card_locator.locator("xpath=/div/div[3]"),
"login time" "login time"
) )
self.session_time = Text( self.session_time = Text(
page, page,
card_locator.locator("xpath=/div/div[4]"), # Изменено с div[5] на div[4] card_locator.locator("xpath=/div/div[4]"),
"session time" # Исправлено имя с "current user name" на "session time" "session time"
) )
self.logout_button = Button( self.logout_button = Button(
page, page,