Skip to content

Commit b4080d5

Browse files
committed
Simplify a method name
1 parent a7f2c6f commit b4080d5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

help_docs/method_summary.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ self.bring_to_front(selector, by=By.CSS_SELECTOR)
275275

276276
self.highlight_click(selector, by=By.CSS_SELECTOR, loops=3, scroll=True)
277277

278-
self.highlight_update_text(
279-
selector, text, by=By.CSS_SELECTOR, loops=3, scroll=True)
278+
self.highlight_type(selector, text, by=By.CSS_SELECTOR, loops=3, scroll=True)
279+
# Duplicates:
280+
# self.highlight_update_text(selector, text, by=By.CSS_SELECTOR, loops=3, scroll=True)
280281

281282
self.highlight(selector, by=By.CSS_SELECTOR, loops=4, scroll=True)
282283

seleniumbase/fixtures/base_case.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4011,6 +4011,17 @@ def highlight_click(
40114011
def highlight_update_text(
40124012
self, selector, text, by=By.CSS_SELECTOR, loops=3, scroll=True
40134013
):
4014+
"""Highlights the element and then types text into the field."""
4015+
self.__check_scope()
4016+
if not self.demo_mode:
4017+
self.highlight(selector, by=by, loops=loops, scroll=scroll)
4018+
self.update_text(selector, text, by=by)
4019+
4020+
def highlight_type(
4021+
self, selector, text, by=By.CSS_SELECTOR, loops=3, scroll=True
4022+
):
4023+
"""Same as self.highlight_update_text()
4024+
As above, highlights the element and then types text into the field."""
40144025
self.__check_scope()
40154026
if not self.demo_mode:
40164027
self.highlight(selector, by=by, loops=loops, scroll=scroll)

0 commit comments

Comments
 (0)