Ejemplo n.º 1
0
 public void TC69230()
 {
     Action.Enter_Text(control.txtSkuUpcModel, Data.get("69230QRCODE"));
     Action.IsElement(control.txtSkuUpcModel).SendKeys(Keys.Enter);
     Reusable.storeLogin(control.txtStoreID, control.btnSetStore, Data.get("StoreID"));
     Action.read_Text(control.titleProdDetails, Data.get("titleProdDetails"));
     Action.verify_Text(control.productDetailsPage, Data.get("69230SKU"));
     Action.verify_Text(control.productDetailsPage, Data.get("69230AVLREL"));
     Action.verify_Text(control.productDetailsPage, Data.get("69230PRC"));
     Action.click_Element(control.txtRelatedProducts);
     Action.read_Text(control.titleRelProducts, Data.get("titleRelProducts"));
     Action.verify_Text(control.headerRelProducts, Data.get("HDRRELPRDS"));
     Action.verify_Text(control.txtAccessories, Data.get("ACCESSORIES"));
     Action.verifyText(Data.get("ACCESSORIES"), Data.get("69230Subgroup1"), control.relatedSubGroups);
     Action.verifyText(Data.get("ACCESSORIES"), Data.get("69230Subgroup2"), control.relatedSubGroups);
     Reusable.scrollToElement(driver, Data.get("69230UNDEFINED"));
     Reusable.IsRelatedSubGroup(Data.get("69230UNDEFINED"), driver);
     Thread.Sleep(2000);
     //Undefined
     Action.verify_Text(control.InRelSubgroup, Data.get("69230UNDEFINED"));
     Action.verifyText(Data.get("69230S1SKU"), Data.get("69230S1DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S2SKU"), Data.get("69230S2DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S3SKU"), Data.get("69230S3DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S4SKU"), Data.get("69230S4DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230S5SKU"), Data.get("69230S5DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S6SKU"), Data.get("69230S6DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S7SKU"), Data.get("69230S7DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S8SKU"), Data.get("69230S8DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S9SKU"), Data.get("69230S9DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230S10SKU"), Data.get("69230S10DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S11SKU"), Data.get("69230S11DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S12SKU"), Data.get("69230S12DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S13SKU"), Data.get("69230S13DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S14SKU"), Data.get("69230S14DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230S15SKU"), Data.get("69230S15DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S16SKU"), Data.get("69230S16DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S17SKU"), Data.get("69230S17DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S18SKU"), Data.get("69230S18DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S19SKU"), Data.get("69230S19DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230S20SKU"), Data.get("69230S20DETAILS"), control.relatedDetails);
     Action.click_Element(control.leftNavigation);
     Reusable.IsRelatedSubGroup(Data.get("69230OPRSYSTEM"), driver);
     Thread.Sleep(2000);
     ///Operating System SubGroup
     Action.verifyText(Data.get("69230O1SKU"), Data.get("69230O1DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O2SKU"), Data.get("69230O2DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O3SKU"), Data.get("69230O3DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O4SKU"), Data.get("69230O4DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O5SKU"), Data.get("69230O5DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230O6SKU"), Data.get("69230O6DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O7SKU"), Data.get("69230O7DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O8SKU"), Data.get("69230O8DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O9SKU"), Data.get("69230O9DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O10SKU"), Data.get("69230O10DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230O11SKU"), Data.get("69230O11DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O12SKU"), Data.get("69230O12DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O13SKU"), Data.get("69230O13DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O14SKU"), Data.get("69230O14DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O15SKU"), Data.get("69230O15DETAILS"), control.relatedDetails);
     Reusable.scroll(driver);
     Action.verifyText(Data.get("69230O16SKU"), Data.get("69230O16DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O17SKU"), Data.get("69230O17DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O18SKU"), Data.get("69230O18DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O19SKU"), Data.get("69230O19DETAILS"), control.relatedDetails);
     Action.verifyText(Data.get("69230O20SKU"), Data.get("69230O20DETAILS"), control.relatedDetails);
 }