public void UserRequestsToBorrowItemAfterViewingLendersProfile() { 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.Marked("Liverpool")); app.WaitForElement("Tapped on view with class: UILabel marked: Liverpool"); app.Tap(x => x.Text("View Profile")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: View Profile"); app.Tap(x => x.Text("Reviews")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Reviews"); app.Tap(x => x.Text("Back")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Back"); app.Tap(x => x.Text("Back")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Back"); app.ScrollDownTo("Borrow Item"); app.WaitForElement("Scrolled to [AppView: Class=[Class: Name=UIButtonLabel], Id=, Text=Borrow Item, Marked=Borrow Item, Css=, XPath=, IndexInTree=-1, Rect=[Rectangle: Left=118.5, Top=527, CenterX=160, CenterY=536, Width=83, Height=18, Bottom=545, Right=201.5]]"); app.Tap(x => x.Text("Borrow Item")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Borrow Item"); app.Tap(x => x.Text("Send borrow request")); app.WaitForElement("Tapped on view with class: UIButtonLabel marked: Send borrow request"); app.Tap(x => x.Marked("Okay")); app.WaitForElement("Tapped on view with class: _UIAlertControllerActionView marked: Okay"); }
public void UpdateFirstName() { app.Screenshot("App Started"); app.EnterText(x => x.Class("UITextField"), "UseLocalDataSource"); app.Screenshot("Entered data parition phrase"); app.Tap(x => x.Text("Continue")); app.WaitForElement(x => x.Marked("Armstead, Evan")); Thread.Sleep(3000); // wait a few seconds for list images to fully load app.Screenshot("Display list"); app.Tap(x => x.Marked("Armstead, Evan")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Detail screen"); app.Tap(x => x.Id("edit.png")); app.Screenshot("Edit screen"); app.ScrollDownTo("First"); app.Tap(x => x.Marked("Evan")); app.ClearText(); app.Screenshot("Cleared first name field"); app.EnterText("Jonathan"); app.DismissKeyboard(); app.Screenshot("Altered value of first name field"); app.Tap(x => x.Id("save.png")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Saved changes, navigated to detail screen, first name updated"); app.Tap(x => x.Marked("List")); app.Screenshot("First name updated on list screen"); }
public void UpdateFirstName() { app.WaitForElement(x => x.Marked("Armstead, Evan")); // wait for the list to appear app.Screenshot("App start, display list"); app.ScrollDownTo("Green, Monica"); app.Screenshot("Scrolled to Monica Green"); app.Tap(x => x.Marked("Green, Monica")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Detail screen"); app.Tap(x => x.Id("edit.png")); app.Screenshot("Edit screen"); app.ScrollDownTo("First"); app.Tap(x => x.Marked("Monica")); app.ClearText(); app.Screenshot("Cleared first name field"); app.EnterText("Erica"); app.DismissKeyboard(); app.Screenshot("Altered value of company name field"); app.Tap(x => x.Id("save.png")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Saved changes, navigated to detail screen, first name updated"); app.Tap(x => x.Marked("List")); app.ScrollDownTo("Green, Erica"); app.Screenshot("First name updated on list screen, first name updated"); }
public void UpdateFirstName() { app.Screenshot("App Started"); app.Tap(x => x.Marked("Enter a unique phrase")); app.EnterText("UseLocalDataSource"); app.Screenshot("Entered data parition phrase"); app.Tap(x => x.Marked("Continue")); Thread.Sleep(10000); // wait 10 seconds to let list and all images load app.Screenshot("App start, display list"); app.ScrollDownTo("Green, Monica"); app.Screenshot("Scrolled to Monica Green"); app.Tap(x => x.Marked("Green, Monica")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Detail screen"); app.Tap(x => x.Id("edit.png")); app.Screenshot("Edit screen"); app.ScrollDownTo("First"); app.Tap(x => x.Marked("Monica")); Thread.Sleep(1000); app.ClearText(); app.Screenshot("Cleared first name field"); app.EnterText("Erica"); app.DismissKeyboard(); app.Screenshot("Altered value of company name field"); app.Tap(x => x.Id("save.png")); app.WaitForElement(x => x.Class("MKNewAnnotationContainerView")); // wait for the map to appear Thread.Sleep(2000); // wait 2 seconds to give map time to fully render app.Screenshot("Saved changes, navigated to detail screen, first name updated"); app.Tap(x => x.Marked("List")); app.Screenshot("First name updated on list screen, first name updated"); }