A simple iOS app that presents a modal SFSafariViewController (WebView) with a local HTML login page.
Purpose: This project is designed for testing Maestro's ability to read contents in webviews within iOS applications.
- The main
ViewControllerdisplays a button labeled "Open Login Page" - When tapped, it loads the local
login.htmlfile - The HTML file is presented in a modal
SFSafariViewController - The login page contains email and password fields with basic form validation
- Users can dismiss the modal by tapping "Done" in the Safari view controller
- Open
SimpleWebViewApp.xcodeprojin Xcode - Select a simulator or device
- Build and run the project (⌘+R)
- The HTML file is served via a local HTTP server on port 8080 (SFSafariViewController requires HTTP/HTTPS URLs)
- The login form includes basic JavaScript validation for demonstration purposes