From 5ed2aaea12d5eb5927021ec1789f4c4749ed5c70 Mon Sep 17 00:00:00 2001 From: Radislav Date: Sun, 12 Oct 2025 13:01:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components_derived/user_card.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components_derived/user_card.py b/components_derived/user_card.py index ce00123..4beaeab 100644 --- a/components_derived/user_card.py +++ b/components_derived/user_card.py @@ -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,