Fix an issue with driver.highlight(element) when setting "loops"
This commit is contained in:
parent
1a2a910bb6
commit
49a8f98027
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue