Created
January 10, 2016 01:58
-
-
Save adamped/ca0a363f34b4ee976863 to your computer and use it in GitHub Desktop.
Screen Object Pattern Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Mobile.UITest.Screen | |
{ | |
public class Login | |
{ | |
IApp _app = null; | |
public Login(IApp app) | |
{ | |
_app = app; | |
} | |
public string GetEmailText() | |
{ | |
return _app.Query(m => m.Marked("EmailEntry")).FirstOrDefault()?.Text; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment