Ejemplo n.º 1
0
        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.
        }
Ejemplo n.º 2
0
        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");
        }