Skip to content

Commit

Permalink
fix: using single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijeshkrishna committed Nov 28, 2024
1 parent 19feaaa commit 2cababd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
27 changes: 14 additions & 13 deletions appium/webdriver/common/appiumby.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ class AppiumBy(By):
FLUTTER_INTEGRATION_TEXT = '-flutter text'
FLUTTER_INTEGRATION_TEXT_CONTAINING = '-flutter text containing'


ByType = Literal[
"-ios predicate string",
"-ios class chain",
"-android uiautomator",
"-android viewtag",
"-android datamatcher",
"-android viewmatcher",
"accessibility id",
"-image",
"-custom",
"-flutter semantics label",
"-flutter type",
"-flutter key",
"-flutter text containing",
'-ios predicate string',
'-ios class chain',
'-android uiautomator',
'-android viewtag',
'-android datamatcher',
'-android viewmatcher',
'accessibility id',
'-image',
'-custom',
'-flutter semantics label',
'-flutter type',
'-flutter key',
'-flutter text containing',
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

from typing import Tuple

from appium.webdriver.common.appiumby import AppiumBy
from appium.webdriver.common.appiumby.AppiumBy import By as AppiumBy
from appium.webdriver.common.appiumby.AppiumBy import ByType


class FlutterFinder:
def __init__(self, using: str, value: str) -> None:
def __init__(self, using: ByType, value: str) -> None:
self.using = using
self.value = value

Expand Down

0 comments on commit 2cababd

Please sign in to comment.