Skip to content

Commit e738d3b

Browse files
feat: rename timeout variable
1 parent c0f3848 commit e738d3b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

appium/webdriver/extensions/flutter_integration/flutter_commands.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,42 +32,42 @@ def __init__(self, driver: WebDriver) -> None:
3232
def wait_for_visible(
3333
self,
3434
locator: Union[WebElement, FlutterFinder],
35-
time_out: Optional[float] = None,
35+
timeout: Optional[float] = None,
3636
) -> None:
3737
"""
3838
Waits for a element to become visible.
3939
4040
Args:
4141
locator (Union[WebElement, FlutterFinder]): The element to wait for; can be a WebElement or a FlutterFinder.
42-
time_out (Optional[float]): Maximum wait time in seconds. Defaults to a predefined timeout if not specified.
42+
timeout (Optional[float]): Maximum wait time in seconds. Defaults to a predefined timeout if not specified.
4343
4444
Returns:
4545
None:
4646
"""
4747
opts: Dict[str, Any] = self.__get_locator_options(locator)
48-
if time_out is not None:
49-
opts['timeout'] = time_out
48+
if timeout is not None:
49+
opts['timeout'] = timeout
5050

5151
self.execute_flutter_command('waitForVisible', opts)
5252

5353
def wait_for_invisible(
5454
self,
5555
locator: Union[WebElement, FlutterFinder],
56-
time_out: Optional[float] = None,
56+
timeout: Optional[float] = None,
5757
) -> None:
5858
"""
5959
Waits for a element to become invisible.
6060
6161
Args:
6262
locator (Union[WebElement, FlutterFinder]): The element to wait for; can be a WebElement or a FlutterFinder.
63-
time_out (Optional[float]): Maximum wait time in seconds. Defaults to a predefined timeout if not specified.
63+
timeout (Optional[float]): Maximum wait time in seconds. Defaults to a predefined timeout if not specified.
6464
6565
Returns:
6666
None:
6767
"""
6868
opts: Dict[str, Any] = self.__get_locator_options(locator)
69-
if time_out is not None:
70-
opts['timeout'] = time_out
69+
if timeout is not None:
70+
opts['timeout'] = timeout
7171

7272
self.execute_flutter_command('waitForAbsent', opts)
7373

0 commit comments

Comments
 (0)