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

WebView Matchers #136

Closed
isnifer opened this issue May 20, 2017 · 6 comments
Closed

WebView Matchers #136

isnifer opened this issue May 20, 2017 · 6 comments

Comments

@isnifer
Copy link
Contributor

isnifer commented May 20, 2017

Hi, guys!

Thank you for the great tool. We've sped up our tests in 5 times.
Please, tell me how can I test web views? Facebook login for example:
image

@bootstraponline
Copy link

you might be interested in google/EarlGrey#211 for how to support WebViews 😄

@isnifer
Copy link
Contributor Author

isnifer commented May 31, 2017

@bootstraponline awesome. Hope, detox will too

@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 6, 2017

@bootstraponline This is not a web view. This is a Safari view controller, which renders off-process. Once Earl Grey 2.0 (google/EarlGrey#193) is ready, there will be more support for this. Closing for now.

@bootstraponline
Copy link

Is there no way to inject JS in the Safari view controller? That should be all that's required to automate a webpage.

@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 6, 2017

No, it is not possible. A Safari view controller, unlike UIWebView and WKWebView, is intended to preserve the user’s privacy. As such, its only input is a URL and whether it should enter reader mode right away. There is no access to the DOM after it has rendered.

@bootstraponline
Copy link

Oh, thanks for the info.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants