Skip to content

Commit 49a8f98

Browse files
committed
Fix an issue with driver.highlight(element) when setting "loops"
1 parent 1a2a910 commit 49a8f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/core/sb_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_user_agent(self, *args, **kwargs):
147147
return js_utils.get_user_agent(self.driver, *args, **kwargs)
148148

149149
def highlight(self, *args, **kwargs):
150-
w_args = kwargs
150+
w_args = kwargs.copy()
151151
if "loops" in w_args:
152152
w_args.pop("loops")
153153
element = page_actions.wait_for_element(self.driver, *args, **w_args)

0 commit comments

Comments
 (0)