Skip to content

Commit d58348a

Browse files
committed
Don't duplicate the highlight animations with Demo Mode
1 parent 0a5f5b4 commit d58348a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,12 +1321,14 @@ def bring_to_front(self, selector, by=By.CSS_SELECTOR):
13211321

13221322
def highlight_click(self, selector, by=By.CSS_SELECTOR,
13231323
loops=3, scroll=True):
1324-
self.highlight(selector, by=by, loops=loops, scroll=scroll)
1324+
if not self.demo_mode:
1325+
self.highlight(selector, by=by, loops=loops, scroll=scroll)
13251326
self.click(selector, by=by)
13261327

13271328
def highlight_update_text(self, selector, new_value, by=By.CSS_SELECTOR,
13281329
loops=3, scroll=True):
1329-
self.highlight(selector, by=by, loops=loops, scroll=scroll)
1330+
if not self.demo_mode:
1331+
self.highlight(selector, by=by, loops=loops, scroll=scroll)
13301332
self.update_text(selector, new_value, by=by)
13311333

13321334
def highlight(self, selector, by=By.CSS_SELECTOR,

0 commit comments

Comments
 (0)