Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Dec 4, 2024
1 parent dd19cff commit 3c1c02f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appium/webdriver/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __init__( # noqa: PLR0913

self.error_handler = MobileErrorHandler()

if client_config.direct_connection:
if client_config and client_config.direct_connection:
self._update_command_executor(keep_alive=client_config.keep_alive)

# add new method to the `find_by_*` pantheon
Expand Down
6 changes: 3 additions & 3 deletions test/unit/webdriver/webdriver_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from appium import webdriver
from appium.options.android import UiAutomator2Options
from appium.webdriver.appium_connection import AppiumConnection
from appium.webdriver.client_config import AppiumClientConfg
from appium.webdriver.client_config import AppiumClientConfig
from appium.webdriver.webdriver import ExtensionBase, WebDriver
from test.helpers.constants import SERVER_URL_BASE
from test.unit.helper.test_helper import (
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_create_session_register_uridirect(self):
'app': 'path/to/app',
'automationName': 'UIAutomator2',
}
client_config = AppiumClientConfg(remote_server_addr=SERVER_URL_BASE, direct_connection=True)
client_config = AppiumClientConfig(remote_server_addr=SERVER_URL_BASE, direct_connection=True)
driver = webdriver.Remote(
SERVER_URL_BASE,
options=UiAutomator2Options().load_capabilities(desired_caps),
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_create_session_register_uridirect_no_direct_connect_path(self):
'app': 'path/to/app',
'automationName': 'UIAutomator2',
}
client_config = AppiumClientConfg(remote_server_addr=SERVER_URL_BASE, direct_connection=True)
client_config = AppiumClientConfig(remote_server_addr=SERVER_URL_BASE, direct_connection=True)
driver = webdriver.Remote(
SERVER_URL_BASE, options=UiAutomator2Options().load_capabilities(desired_caps), client_config=client_config
)
Expand Down

0 comments on commit 3c1c02f

Please sign in to comment.