Skip to content

Commit 2cababd

Browse files
fix: using single quotes
1 parent 19feaaa commit 2cababd

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

appium/webdriver/common/appiumby.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,19 @@ class AppiumBy(By):
3535
FLUTTER_INTEGRATION_TEXT = '-flutter text'
3636
FLUTTER_INTEGRATION_TEXT_CONTAINING = '-flutter text containing'
3737

38+
3839
ByType = Literal[
39-
"-ios predicate string",
40-
"-ios class chain",
41-
"-android uiautomator",
42-
"-android viewtag",
43-
"-android datamatcher",
44-
"-android viewmatcher",
45-
"accessibility id",
46-
"-image",
47-
"-custom",
48-
"-flutter semantics label",
49-
"-flutter type",
50-
"-flutter key",
51-
"-flutter text containing",
40+
'-ios predicate string',
41+
'-ios class chain',
42+
'-android uiautomator',
43+
'-android viewtag',
44+
'-android datamatcher',
45+
'-android viewmatcher',
46+
'accessibility id',
47+
'-image',
48+
'-custom',
49+
'-flutter semantics label',
50+
'-flutter type',
51+
'-flutter key',
52+
'-flutter text containing',
5253
]

appium/webdriver/extensions/flutter_integration/flutter_finder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
from typing import Tuple
1919

20-
from appium.webdriver.common.appiumby import AppiumBy
20+
from appium.webdriver.common.appiumby.AppiumBy import By as AppiumBy
21+
from appium.webdriver.common.appiumby.AppiumBy import ByType
2122

2223

2324
class FlutterFinder:
24-
def __init__(self, using: str, value: str) -> None:
25+
def __init__(self, using: ByType, value: str) -> None:
2526
self.using = using
2627
self.value = value
2728

0 commit comments

Comments
 (0)