예제 #1
0
		public void UserLendsOutAnItemAndSeesGemStoneRankChange()
		{
			app.Tap(x => x.Marked("Sign-in"));
			app.WaitForElement("Tapped on view with class: UIButton marked: Sign-in");
			app.Tap(x => x.Class("UIWebView").Css("INPUT._56bg._4u9z._5ruq"));
			app.WaitForElement("Tapped on view with class: UIWebView");
			app.EnterText(x => x.Class("UIWebView").Css("INPUT._56bg._4u9z._5ruq"), "*****@*****.**");
			app.Tap(x => x.Class("UIWebView").Css("INPUT#u_0_2"));
			app.WaitForElement("Tapped on view with class: UIWebView");
			app.EnterText(x => x.Class("UIWebView").Css("INPUT#u_0_2"), "Imperial09!");
			app.Tap(x => x.Class("UIWebView").Css("BUTTON#u_0_6"));
			app.WaitForElement("Tapped on view with class: UIWebView");
			app.Tap(x => x.Id("*****@*****.**"));
			app.WaitForElement("Tapped on view with class: UITabBarSwappableImageView");
			app.Tap(x => x.Marked("Enter Category"));
			app.WaitForElement("Tapped on view with class: UITextFieldLabel marked: Enter Category");
			app.Tap(x => x.Marked("Book"));
			app.WaitForElement("Tapped on view with class: UILabel marked: Book");
			app.Tap(x => x.Marked("Done"));
			app.WaitForElement("Tapped on view with class: UIToolbarTextButton marked: Done");
			app.Tap(x => x.Marked("Enter Name"));
			app.WaitForElement("Tapped on view with class: UITextFieldLabel marked: Enter Name");
			app.EnterText(x => x.Class("UITextField").Index(1), "Of Mice and Men");
			app.Tap(x => x.Text("Enter Description"));
			app.WaitForElement("Tapped on view with class: UITextView");
			app.Tap(x => x.Marked("Done"));
			app.WaitForElement("Tapped on view with class: UIToolbarTextButton marked: Done");
			app.Tap(x => x.Marked("Enter Number of Days Willing to Lend"));
			app.WaitForElement("Tapped on view with class: UITextFieldLabel marked: Enter Number of Days Willing to Lend");
			app.EnterText(x => x.Class("UITextField").Index(2), "12");
			app.Tap(x => x.Class("Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer"));
			app.WaitForElement("Tapped on view with class: Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer");
			app.Tap(x => x.Marked("Enter Location"));
			app.WaitForElement("Tapped on view with class: UITextFieldLabel marked: Enter Location");
			app.EnterText(x => x.Class("UITextField").Index(3), "London");
			app.PressEnter();
			app.Tap(x => x.Class("UIButtonLabel").Text("Add Item").Marked("Add Item"));
			app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Add Item");
			app.Tap(x => x.Marked("Ok"));
			app.WaitForElement("Tapped on view with class: _UIAlertControllerActionView marked: Ok");
			app.Tap(x => x.Id("Gender Neutral [email protected]"));
			app.WaitForElement("Tapped on view with class: UITabBarSwappableImageView");
			app.Tap(x => x.Text("Rank Table"));
			app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Rank Table");
			app.Tap(x => x.Text("Back"));
			app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Back");
		}