From 710cd5c7cdf0600aea56d74f7e4e7833863c2c62 Mon Sep 17 00:00:00 2001 From: Brijesh Date: Fri, 29 Nov 2024 10:38:13 +0530 Subject: [PATCH] fix: adding selenium typing --- .../extensions/flutter_integration/flutter_finder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appium/webdriver/extensions/flutter_integration/flutter_finder.py b/appium/webdriver/extensions/flutter_integration/flutter_finder.py index 14e86c3c..ec271abd 100644 --- a/appium/webdriver/extensions/flutter_integration/flutter_finder.py +++ b/appium/webdriver/extensions/flutter_integration/flutter_finder.py @@ -15,14 +15,15 @@ # specific language governing permissions and limitations # under the License. -from typing import Tuple +from typing import Tuple, Union from appium.webdriver.common.appiumby.AppiumBy import By as AppiumBy -from appium.webdriver.common.appiumby.AppiumBy import ByType +from appium.webdriver.common.appiumby.AppiumBy import ByType as AppiumByType +from selenium.webdriver.common.by import ByType as SeleniumByType class FlutterFinder: - def __init__(self, using: ByType, value: str) -> None: + def __init__(self, using: Union[SeleniumByType, AppiumByType], value: str) -> None: self.using = using self.value = value