Skip to content

[🐛 Bug]: The setAutoWebview(boolean) method isn't working as expected #1916

@jgfmachado

Description

@jgfmachado

Description

UiAutomator2Options().setAutoWebview(boolean); isn't working as expected, as it doesn't change the focus to the Webview on app startup when set to true. We have to use UiAutomator2Options().setCapability("autoWebview", boolean); instead.

Environment

Using Appium Java Client version 8.4.0

Details

After launching the app, my script attempts to change the URL. Once it reaches that point I get a WebDriverException exception,

Code To Reproduce Issue

UiAutomator2Options capabilities = new UiAutomator2Options();
capabilities.setAutoWebview(true);

Exception Stacktraces

https://gist.github.com/jgfmachado/12ed0d38a5da221981117dbee80624f3

Link To Appium Logs

https://gist.github.com/jgfmachado/a026d7728c826634dcd5df7a8ea0547e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions