Fix an issue with driver.highlight(element) when setting "loops"

This commit is contained in:
Michael Mintz 2024-03-07 20:44:38 -05:00
parent 1a2a910bb6
commit 49a8f98027
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class DriverMethods():
return js_utils.get_user_agent(self.driver, *args, **kwargs)
def highlight(self, *args, **kwargs):
w_args = kwargs
w_args = kwargs.copy()
if "loops" in w_args:
w_args.pop("loops")
element = page_actions.wait_for_element(self.driver, *args, **w_args)