Skip to content

Commit 2c24b82

Browse files
committed
Tuning _input_text_into_text_field method
1 parent 4c3413b commit 2c24b82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SeleniumLibrary/keywords/formelement.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def input_password(self, locator, password, clear=True):
241241
logging from Selenium logs is new in SeleniumLibrary 4.2.
242242
"""
243243
self.info("Typing password into text field '%s'." % locator)
244-
self._input_text_into_text_field(locator, password, clear, True)
244+
self._input_text_into_text_field(locator, password, clear, disable_log=True)
245245

246246
@keyword
247247
def input_text(self, locator, text, clear=True):
@@ -267,7 +267,7 @@ def input_text(self, locator, text, clear=True):
267267
argument are new in SeleniumLibrary 4.0
268268
"""
269269
self.info("Typing text '%s' into text field '%s'." % (text, locator))
270-
self._input_text_into_text_field(locator, text, clear, False)
270+
self._input_text_into_text_field(locator, text, clear)
271271

272272
@keyword
273273
def page_should_contain_textfield(self, locator, message=None, loglevel='TRACE'):
@@ -422,7 +422,7 @@ def _get_value_from_radio_buttons(self, elements):
422422
return element.get_attribute('value')
423423
return None
424424

425-
def _input_text_into_text_field(self, locator, text, clear, disable_log):
425+
def _input_text_into_text_field(self, locator, text, clear=True, disable_log=False):
426426
element = self.find_element(locator)
427427
if is_truthy(clear):
428428
element.clear()

0 commit comments

Comments
 (0)