robotframework-appiumlibrary icon indicating copy to clipboard operation
robotframework-appiumlibrary copied to clipboard

When i try interact with a "modal", the action is executed, but not send to application.

Open douglas-zapalago opened this issue 7 years ago • 2 comments

On my Android Application, when i try interact with a modal, the action is executed successfully (i can see it on log) but nothing happens on app. One example is the Android "camera" with options "Take photo", "Load a photo" and "Cancel", when i click on "Take photo", the modal is closed, but not execute the action oppening the camera. Another example is the modal "Photo Viewer", i try interact with buttons in this modal, but nothing happens.

douglas-zapalago avatar Aug 10 '18 13:08 douglas-zapalago

My application, is Hybrid. Even finding the element and executing the action successfully did not send this to the app. I solve this change the context to "WEBVIEW".

I was able to access this modal using the context "WEBVIEW".

    Switch To Context                    WEBVIEW_com.myapp.sirvaapp
    Wait Until Element Is Visible        css=.buttonTakePreview
    Click Element                        css=.buttonTakePreview
    Switch To Context                    NATIVE_APP

But I believe that it is still in error, because it returns success, and nothing happens in the app. By myself this topic is closed.

douglas-zapalago avatar Aug 14 '18 14:08 douglas-zapalago

@douglas-zapalago it is likely this is specific to your application, have you tested the click with chrome tools from browser ? Try to use another selector maybe xpath

serhatbolsu avatar Jan 10 '19 06:01 serhatbolsu

Closing due to inactivity

serhatbolsu avatar Oct 27 '22 08:10 serhatbolsu