Skip to content

Commit 4faec75

Browse files
committed
seleniumlib: Drop arguments from sub-functions
1 parent 0878606 commit 4faec75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

seleniumlib/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ def add_cookie(cookie):
160160
"""Add a cookie: `{name: value}`."""
161161

162162
@log_action(f"Add cookie {cookie}")
163-
def _add_cookie(cookie):
163+
def _add_cookie():
164164
browser.add_cookie(cookie)
165165

166-
_add_cookie(cookie)
166+
_add_cookie()
167167

168168

169169
def check_session_path():
@@ -365,22 +365,22 @@ def double_click(element, find_by=By.LINK_TEXT, alias=None):
365365
"""Wait for an element to be available and click it."""
366366

367367
@log_action(f"Double click {alias or element} (method: {find_by})")
368-
def _double_click(element, find_by):
368+
def _double_click():
369369
element_obj = get_element_obj(element, find_by)
370370
ActionChains(browser).double_click(element_obj).perform()
371371

372-
_double_click(element, find_by)
372+
_double_click()
373373

374374

375375
def double_click_by_attr_value(attribute, value, alias=None):
376376
"""Double click an element by attribute value."""
377377

378378
@log_action(f"Double click {attribute}={value} {alias or ''}")
379-
def _double_click_by_attr_value(attribute, value):
379+
def _double_click_by_attr_value():
380380
element_obj = get_element_by_attr_value(attribute, value)
381381
ActionChains(browser).double_click(element_obj).perform()
382382

383-
_double_click_by_attr_value(attribute, value)
383+
_double_click_by_attr_value()
384384

385385

386386
def clear_text(element_obj):

0 commit comments

Comments
 (0)