Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you plan to provide an extended Driver like UiAutomator2Options? #2161

Open
dylan-kwon opened this issue Apr 18, 2024 · 0 comments
Open

Comments

@dylan-kwon
Copy link

Is there a reason why you do not provide extended drivers such as UiAutomator2Driver?
executeScript is flexible, but it is inconvenient to use multiple times.

For example, as follows

Current code

val result = driver.executeScript("mobile: {method-name}" mapOf(
    "key1": "value1"
    "key1": "value2"
))

Extended code

class UiAutomator2Driver(..): AndroidDriver(..) {
    fun methodName(value1: String, value2: String) = executeScript(..)
}
UiAutomator2Driver().methodName("value1", "value2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@dylan-kwon and others