Exemple #1
0
        //Logout - needed to check saved data is actually saved
        public void MyProfileLogout()
        {
            MyProfile browser = new MyProfile(this.driver);

            this.Map.UserNameLink.Click();
            Thread.Sleep(1000);
            this.Map.LogOutLink.Click();
        }
Exemple #2
0
        //Navigate To without Logging In
        public void NavigateToNoLogin()
        {
            MyProfile browser = new MyProfile(this.driver);

            this.Map.UserNameLink.Click();
            this.Map.MyProfileLink.Click();
            this.Map.NavigateYes.Click();
            Wait(this.driver);
        }
Exemple #3
0
        //Click Save and OK
        public void ClickSaveOk()
        {
            MyProfile browser = new MyProfile(this.driver);

            this.Map.SaveButton.Click();
            Wait(this.driver);
            this.Map.SaveOkButton.Click();
            Wait(this.driver);
        }
Exemple #4
0
        public void IsPrimarypropertySelect()//check primary property select or not
        {
            MyProfile browser          = new MyProfile(this.driver);
            var       dropDown         = new SelectElement(this.Map.PrimaryPropertyDropDown);
            var       dropDownSelected = dropDown.SelectedOption.Text;

            Thread.Sleep(1000);


            if (primaryproperty == dropDownSelected)
            {
                Console.WriteLine("Primary property selected");
            }
            else
            {
                Console.WriteLine("Primary property not selected");
            }
            Thread.Sleep(1000);
        }
Exemple #5
0
        public void PrimaryPropertyChange()
        {
            MyProfile browser          = new MyProfile(this.driver);
            var       dropDown         = new SelectElement(this.Map.PrimaryPropertyDropDown);
            var       dropDownSelected = dropDown.SelectedOption.Text;

            oldPrimaryProperty = dropDownSelected;
            SelectElement       allOptions = new SelectElement(this.Map.PrimaryPropertyDropDown);
            IList <IWebElement> options    = allOptions.Options;

            foreach (IWebElement option in options)
            {
                if (option.Text.Equals(dropDownSelected))
                {
                    //Do nothing - Next
                }
                else
                {
                    newPrimaryProperty = option.Text.ToString();
                    option.Click();
                    break;
                }
            }
        }
Exemple #6
0
        //Click Cancel
        public void ClickCancel()
        {
            MyProfile browser = new MyProfile(this.driver);

            this.Map.CancelButton.Click();
        }