Skip to content

[Appium] Can't interactive with the page element of webview in Android application #2904

@ansonliao

Description

@ansonliao

I am running Codecept version 3.0.7, and running the hybrid Android application, facing that Codecept can switch into Webview, the problems are:

  1. Some page elements of the webview, codecept can recognize, but some can't recognize.
  2. The page element of the webview can be recognized by codecept, but can't interactive, for example, I would like to click the element, the action is performed but nothing happens in the application (should something happen, for example, navigate to a new page, trigger the input field, etc.)
  3. perform the click action by I.click() is failed, it is passes if I.tap(), why?

2021-05-19 20 45 50

When perform click action by I.click() in the webview, will be error, and the error message:

ERROR webdriver: Request failed with status 404 due to unknown command: unknown command: Cannot call non W3C standard command while in W3C mode
unknown command: unknown command: Cannot call non W3C standard command while in W3C mode

2021-05-19 20 45 44

And have a strange problem, as the above scanrio, I.click() action is failed in the webview, expect the test case will be failed, but finally codecept says the test is passed! Why? I don't understand.

2021-05-19 20 45 54

Could you help to provide some solutions to my problems?

Thanks.

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