Skip to content

Commit 710cd5c

Browse files
fix: adding selenium typing
1 parent 2cababd commit 710cd5c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

appium/webdriver/extensions/flutter_integration/flutter_finder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
from typing import Tuple
18+
from typing import Tuple, Union
1919

2020
from appium.webdriver.common.appiumby.AppiumBy import By as AppiumBy
21-
from appium.webdriver.common.appiumby.AppiumBy import ByType
21+
from appium.webdriver.common.appiumby.AppiumBy import ByType as AppiumByType
22+
from selenium.webdriver.common.by import ByType as SeleniumByType
2223

2324

2425
class FlutterFinder:
25-
def __init__(self, using: ByType, value: str) -> None:
26+
def __init__(self, using: Union[SeleniumByType, AppiumByType], value: str) -> None:
2627
self.using = using
2728
self.value = value
2829

0 commit comments

Comments
 (0)