Skip to content

Not able to interact with webview elements located on payment providers form (Klarna, Clearpay)Β #4907

@anton-vorobkalo

Description

@anton-vorobkalo

Did you test using the latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test fail and you're not sure why?

  • I have read the troubleshooting guide and it didn't help me.

What happened?

Hybrid app. During test execution there is no ability to interact with webview elements on integrated payment provider form. Native element with webview located successfully via detox methods, but webview element can not be located and interacted with.

log.info(Tapping on element by.xpath: ${elementXpath}); const webview = await getRootWebView(); const webelement = await webview.element(by.web.xpath(elementXpath)); await webelement.scrollToView(); await webelement.tap();

Test Failed: element was not found at index: 0

Image Image

What was the expected behaviour?

No response

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.47.0
React Native version: 0.77.3
Node version: 22.17.0
Test-runner: jest

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions