Skip to content

Commit 316c5f8

Browse files
alvarolasernaAlvaro Laserna
andauthored
fix loging of send_keys method (#114)
Co-authored-by: Alvaro Laserna <alvarolaserna@MacBook-Pro-2.local>
1 parent 5a616ba commit 316c5f8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/selenium_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def test_template_matching(self, selenium_driver: TestUIDriver):
4242
.wait_until_visible().press_hold_for()
4343
e(selenium_driver, 'xpath', '//h3[contains(text(), "Image Recognition:")]')\
4444
.swipe(start_x=50, start_y=50, end_x=100, end_y=100)
45+
selenium_driver.navigate_to(
46+
"https://www.testdevlab.com/"
47+
).e('css', '#email').send_keys('some@email.com')
4548
selenium_driver.raise_errors()
4649

4750
@pytest.mark.signup

testui/elements/testui_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def send_keys(self, value, log=True):
826826
if log:
827827
self.__put_log(
828828
f'{self.device_name}: element "{self.locator_type}: '
829-
'{self.locator}" received keys "{value}" after '
829+
f'{self.locator}" received keys "{value}" after '
830830
f"{time.time() - start}s"
831831
)
832832
return self

0 commit comments

Comments
 (0)