internal PopupPage CompareProducts(IWebDriver driver) { ReportHelper.TestStepInfo("Comparing products in compare list.."); CompareButton.Click(); ReportHelper.TestStepInfo("New window pops up.."); driver.SwitchTo().Window(driver.WindowHandles.Last()); ReportHelper.TestStepInfo("Window switch Success..."); return(new PopupPage(driver)); }
public void ClickCompareButton() { CompareButton.Click(); }