Esempio n. 1
0
 /// <summary>
 /// Associate given crt file with given profile.
 /// </summary>
 /// <param name="crossReferenceType"></param>
 /// <param name="crtId"></param>
 /// <param name="profilename"></param>
 public void AssociateCrtWithProfile(
     string crossReferenceType,
     string crtId,
     string profilename)
 {
     //Click B2B Profile List
     B2BHomePage.ClickB2BProfileList();
     //Search given profile and associate
     B2BCustomerProfileListPage.SearchProfile(null, profilename);
     B2BCustomerProfileListPage.ClickSearchedProfile();
     //Associate CR
     B2BManageProfileIdentitiesPage.CRAssociationLink.Click();
     B2BManageProfileIdentitiesPage.AssociateCrossReferenceLink.Click();
     B2BCrossReferenceAssociationPage.FilterCRT(crossReferenceType);
     B2BCrossReferenceAssociationPage.SelectCrIdfromCRList(crtId);
     B2BCrossReferenceAssociationPage.ClickAssociationLink();
 }
Esempio n. 2
0
        /// <summary>
        /// Searches for the profile provided in B2B Profile List page and
        /// navigates to the Buyer Catalog Tab
        /// </summary>
        /// <param name="environment"></param>
        /// <param name="profileName"></param>
        public void GoToBuyerCatalogTab(string environment, string profileName)
        {
            Console.WriteLine("Selecting Environment..");
            b2BHomePage.SelectEnvironment(environment);
            Console.WriteLine("Done!");
            Console.WriteLine("Clicking on B2B Profile List..");
            b2BHomePage.ClickB2BProfileList();
            Console.WriteLine("Done!");

            Console.WriteLine("Searching for Profile by Customer Name : {0}", profileName);
            b2BCustomerProfileListPage = new B2BCustomerProfileListPage(webDriver);
            b2BCustomerProfileListPage.SearchProfile("Customer Name", profileName);
            b2BCustomerProfileListPage.ClickSearchedProfile(profileName.ToUpper());

            b2BManageProfileIdentitiesPage = new B2BManageProfileIdentitiesPage(webDriver);
            Console.WriteLine("Opened Profile Page for profile: {0}", profileName);

            Console.WriteLine("Clicking on BuyerCatalogTab..");
            b2BManageProfileIdentitiesPage.BuyerCatalogTab.Click();
            WaitForPageRefresh();
            Console.WriteLine("Done!");
        }