//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(); }
//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); }
//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); }
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); }
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; } } }
//Click Cancel public void ClickCancel() { MyProfile browser = new MyProfile(this.driver); this.Map.CancelButton.Click(); }