Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
244 views
in Technique[技术] by (71.8m points)

ios - can we automate actions inside WebView for native android app developed in Java using Appium?

I have App with 3 screens.

  1. Settings activity where I can enter login URL for instance
  2. WebView login activity, this activity embed WebView which uses login URL to load login page which accepts username, password and then click save button. It will then verify login details and redirects to MainActivity Screen
  3. MainActivity Screen has dashboard with navigation.

I recorded a UI test with Espresso Test Recorder and found that it is not capturing any WebView click actions in WebView login Activity (Activity as mentioned in point 2 above) I also recorded a UI test with Firebase Robo Test Recorder and found that it is also not capturing any WebView click actions in WebView login Activity (Activity as mentioned in point 2 above)

I have found this useful reference related to hybrid app but not for native Android/iOS app: Automating hybrid apps. In this link it shows how to switch between native and WebView contexts to automate actions inside WebView for hybrid apps.

I have 2 question for above scenario:

  1. can we automate actions inside WebView for native android app developed in Java using Appium ?
  2. If not, is there any other automation tool** that can be used to automate WebView actions inside native android app.
question from:https://stackoverflow.com/questions/66047628/can-we-automate-actions-inside-webview-for-native-android-app-developed-in-java

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...