From 36059ea99f8301f1106368dd55cc8687daed5493 Mon Sep 17 00:00:00 2001 From: Alvaro Laserna Date: Tue, 8 Apr 2025 12:24:55 +0300 Subject: [PATCH] fix loging of send_keys method --- tests/selenium_tests.py | 3 +++ testui/elements/testui_element.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/selenium_tests.py b/tests/selenium_tests.py index f66ec78..449bb21 100644 --- a/tests/selenium_tests.py +++ b/tests/selenium_tests.py @@ -42,6 +42,9 @@ def test_template_matching(self, selenium_driver: TestUIDriver): .wait_until_visible().press_hold_for() e(selenium_driver, 'xpath', '//h3[contains(text(), "Image Recognition:")]')\ .swipe(start_x=50, start_y=50, end_x=100, end_y=100) + selenium_driver.navigate_to( + "https://www.testdevlab.com/" + ).e('css', '#email').send_keys('some@email.com') selenium_driver.raise_errors() @pytest.mark.signup diff --git a/testui/elements/testui_element.py b/testui/elements/testui_element.py index eb01027..1a983ce 100644 --- a/testui/elements/testui_element.py +++ b/testui/elements/testui_element.py @@ -826,7 +826,7 @@ def send_keys(self, value, log=True): if log: self.__put_log( f'{self.device_name}: element "{self.locator_type}: ' - '{self.locator}" received keys "{value}" after ' + f'{self.locator}" received keys "{value}" after ' f"{time.time() - start}s" ) return self