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

[Enhancement] How to know execution platform isMobile() isIOS() isAndroid() methods #3166

Closed
carlos-reta opened this issue Apr 21, 2022 · 2 comments · Fixed by #3182
Closed
Assignees

Comments

@carlos-reta
Copy link

Is your feature request related to a problem? Please describe.
Yes, I can't know when I am testing a native app or web in a browser.

Describe the solution you'd like
Expose these methods to the user: isMobile() isIOS() isAndroid()

Describe how the solution will work
When calling browser.isMobile() isIOS() isAndroid() will return true or false depending the case

Describe alternatives you've considered
This should be easy, I don't think this is required in this case

Additional context
No additional context

@beatfactor
Copy link
Member

This should be added to the api object, similar to isSafari() etc.
https://github.com/nightwatchjs/nightwatch/blob/main/lib/core/client.js#L61

@beatfactor beatfactor added this to To do in Nightwatch v2 May 1, 2022
@beatfactor beatfactor moved this from To do to To do (Enhancements) in Nightwatch v2 May 1, 2022
@carlos-reta
Copy link
Author

How can I find out when this feature is released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants