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

How to deal with native elements when ui testing #11

Open
Novotnde opened this issue Jul 14, 2021 · 0 comments
Open

How to deal with native elements when ui testing #11

Novotnde opened this issue Jul 14, 2021 · 0 comments

Comments

@Novotnde
Copy link

Novotnde commented Jul 14, 2021

Hello,

I have a question related to native elements such as pop up and giving permissions. For example I have test case where I can either take a picture or upload it from Gallery and display it on my page. However when the test runs for the first time I need to give permission to access the camera and gallery. I have tried to use real to find out the elements of the page, but I can't see anything useful. Could you advice please how to deal with this?

Also after I return the test and I want click on the picture from gallery I have added some coordinates so I add the picture, but I assume that this will be different on every device?

[  
  public void AddImage()
  {
    app.Tap(_attachmentsViewList);
    app.Tap(Gallery);
    app.TapCoordinates(280,350);
    app.WaitForElement(_bin);
  }
]
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

1 participant