Skip to content

Commit c1c1ecb

Browse files
committed
Make sure z-index is high enough for moving to the top
1 parent 60742d7 commit c1c1ecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,10 @@ def bring_to_front(self, selector, by=By.CSS_SELECTOR):
717717
try:
718718
selector = self.convert_to_css_selector(selector, by=by)
719719
except Exception:
720-
# Don't perform action if can't convert to CSS_SELECTOR for jQuery
720+
# Don't run action if can't convert to CSS_Selector for JavaScript
721721
return
722-
723-
script = ("""document.querySelector('%s').style.zIndex = "1";"""
722+
selector = self.jq_format(selector)
723+
script = ("""document.querySelector('%s').style.zIndex = "100";"""
724724
% selector)
725725
self.execute_script(script)
726726

0 commit comments

Comments
 (0)