public void EdiProfileApplication() { Thread.Sleep(500); try { log.Info("Clicked on User Profile list"); } catch (Exception e) { log.Error("Unable to click user profile list " + Environment.NewLine + e); } log.Info("opened profile list"); //check if profile button pressed try { Pages.Home_Page.ProfileButton.ClickOn(); Thread.Sleep(500); log.Info("opened profile window"); } catch (Exception e) { log.Error("Could not open profile window" + Environment.NewLine + e); } //fill the user details UserFirstName.Clear(); UserFirstName.SendKeys(Constant.UserNameEdit); log.Info("Cleared and changed user name"); UserLastName.Clear(); UserLastName.SendKeys(Constant.UserLastnameEdit); log.Info("Cleared and changed user last name"); Thread.Sleep(500); EditUserButton.ClickOn(); log.Info("pressed on Edit user button"); }
void ReleaseDesignerOutlets() { if (AddPostButton != null) { AddPostButton.Dispose(); AddPostButton = null; } if (EditUserButton != null) { EditUserButton.Dispose(); EditUserButton = null; } if (FriendsButton != null) { FriendsButton.Dispose(); FriendsButton = null; } if (HomeButton != null) { HomeButton.Dispose(); HomeButton = null; } if (ProfileButton != null) { ProfileButton.Dispose(); ProfileButton = null; } if (UserBioLabel != null) { UserBioLabel.Dispose(); UserBioLabel = null; } if (UserFollowersLabel != null) { UserFollowersLabel.Dispose(); UserFollowersLabel = null; } if (UserFollowingLabel != null) { UserFollowingLabel.Dispose(); UserFollowingLabel = null; } if (UserImageView != null) { UserImageView.Dispose(); UserImageView = null; } if (UsernameLabel != null) { UsernameLabel.Dispose(); UsernameLabel = null; } if (UserPostsCollectionView != null) { UserPostsCollectionView.Dispose(); UserPostsCollectionView = null; } if (UserPostsLabel != null) { UserPostsLabel.Dispose(); UserPostsLabel = null; } if (UserTagLabel != null) { UserTagLabel.Dispose(); UserTagLabel = null; } if (LogoutButton != null) { LogoutButton.Dispose(); LogoutButton = null; } }
public AdminEditUsersPage ClickOn_CreateLink() { EditUserButton.Click(); return(new AdminEditUsersPage(Driver)); }
public void SetCommands() { EditUserButton.SetCommand(dataContext.EditProfileCommand); }