Is it possible to use a locator for a webpage in an app that uses a webview?

Issue

I need to develop regression test automation for the app that switches to webview using selenium, appium.

Can the locator used in the web page be used as it is in the app web view environment?

thank you

Solution

It depends on how the views are built for the web and app.
There was a time we were able to use the same selectors for both web E2E and App with the same screens rendered in webview.

Answered By – Raju

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published