public void OptInOutEmailUITest() { TestMethods test = new TestMethods(); var broswer = BrowserWindow.Launch("http://*****:*****@trinitytg.com"); test.EnterText(broswer, "phoneNumber", "9167984676"); test.ClickCheckBox(broswer, "emailNotifications"); test.ClickButton(broswer, "saveUserInfoBtn"); test.ClickLabel(broswer, "savedUserInfoLabel"); test.ClickLabel(broswer, "logoutBtn"); test.ClickButton(broswer, "loginBtn"); // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items. }
public void UpdateUserProfileRandomOptInOutUITest() { TestMethods test = new TestMethods(); var broswer = BrowserWindow.Launch("http://*****:*****@trinitytg.com"); test.EnterText(broswer, "phoneNumber", "9167984676"); test.ClickRandomCheckBox(broswer, "emailNotifications", "pushNotifications", "smsNotification"); test.ClickButton(broswer, "saveUserInfoBtn"); test.ClickLabel(broswer, "savedUserInfoLabel"); test.ClickLabel(broswer, "logoutBtn"); test.ClickButton(broswer, "loginBtn"); }