Skip to content

Commit 9799152

Browse files
committed
Update location of settings parsing
1 parent b04c817 commit 9799152

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ def highlight_update_text(self, selector, new_value, by=By.CSS_SELECTOR,
17181718
self.update_text(selector, new_value, by=by)
17191719

17201720
def highlight(self, selector, by=By.CSS_SELECTOR,
1721-
loops=settings.HIGHLIGHTS, scroll=True):
1721+
loops=None, scroll=True):
17221722
""" This method uses fancy JavaScript to highlight an element.
17231723
Used during demo_mode.
17241724
@Params
@@ -1731,6 +1731,8 @@ def highlight(self, selector, by=By.CSS_SELECTOR,
17311731
selector, by = self.__recalculate_selector(selector, by)
17321732
element = self.wait_for_element_visible(
17331733
selector, by=by, timeout=settings.SMALL_TIMEOUT)
1734+
if not loops:
1735+
loops = settings.HIGHLIGHTS
17341736
if scroll:
17351737
try:
17361738
self.__slow_scroll_to_element(element)

0 commit comments

Comments
 (0)