public ProjectReleaseInformationPage CreateAndAddProfileToRoleAcceptingMultipleProfiles(int batch, string profileName, string location) { var createdProfile = new FindOrCreateProfileToCredit(this._driver); var locatedBatch = FindAllCreditsWithMultipleProfiles().ElementAt(batch); var creatorPad = locatedBatch.CreatorPad(); creatorPad.Click(); createdProfile.CreateAndSelectProfileInline(profileName, location); return(new ProjectReleaseInformationPage(this._driver)); }
private FindOrCreateProfileToCredit CreateProfileInlineForRole(int batch, string expectedProfileName, string location) { var createdProfile = new FindOrCreateProfileToCredit(this._driver); var requiredBatch = FindTheRootElementForRoleWithSingleCredit(batch); var creatorPad = requiredBatch.CreatorPad(); creatorPad.Click(); createdProfile.CreateAndSelectProfileInline(expectedProfileName, location); return(new FindOrCreateProfileToCredit(this._driver)); }