diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index fecd4b1b..d388e450 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -245,8 +245,8 @@ jobs: XCODE_VERSION: 16.4 IOS_VERSION: 18.5 IPHONE_MODEL: iPhone 16 - FLUTTER_ANDROID_APP: "https://github.com/AppiumTestDistribution/appium-flutter-server/releases/latest/download/app-debug.apk" - FLUTTER_IOS_APP: "https://github.com/AppiumTestDistribution/appium-flutter-server/releases/latest/download/ios.zip" + FLUTTER_ANDROID_APP: "https://github.com/AppiumTestDistribution/appium-flutter-server/releases/download/0.0.32/app-debug.apk" + FLUTTER_IOS_APP: "https://github.com/AppiumTestDistribution/appium-flutter-server/releases/download/0.0.32/ios.zip" PREBUILT_WDA_PATH: ${{ github.workspace }}/wda/WebDriverAgentRunner-Runner.app steps: diff --git a/appium/webdriver/webdriver.py b/appium/webdriver/webdriver.py index 5ae6b9ab..5f596639 100644 --- a/appium/webdriver/webdriver.py +++ b/appium/webdriver/webdriver.py @@ -305,10 +305,14 @@ def _update_command_executor(self, keep_alive: bool) -> None: if not self.caps: raise ValueError('Driver capabilities must be defined') - if not {direct_protocol, direct_host, direct_port, direct_path}.issubset(set(self.caps)): - message = 'Direct connect capabilities from server were:\n' - for key in [direct_protocol, direct_host, direct_port, direct_path]: - message += f"{key}: '{self.caps.get(key, '')}' " + if not {direct_protocol, direct_host, direct_port, direct_path}.issubset(self.caps): + message = ( + f'Direct connect capabilities from server were:\n' + f"{direct_protocol}: '{self.caps.get(direct_protocol, '')}' " + f"{direct_host}: '{self.caps.get(direct_host, '')}' " + f"{direct_port}: '{self.caps.get(direct_port, '')}' " + f"{direct_path}: '{self.caps.get(direct_path, '')}' " + ) logger.debug(message) return