public void PageLoaded_when_NavigateToInteractionsDropDowns(string subName) { var dropDownNavigation = Driver.FindElement(By.XPath($"//*[normalize-space(text())='{subName}']")); Driver.ScrollTo(dropDownNavigation); _leftPanelPage.SubMenu(subName).Click(); _leftPanelPage.AssertPageTitle(subName); }
public void ElementsSectionsTest_when_ClickOn(string subName) { var dropDownNavigation = Driver.FindElement(By.XPath($"//*[normalize-space(text())='{subName}']")); Driver.ScrollTo(dropDownNavigation); _leftPanelPage.SubMenu(subName).Click(); _leftPanelPage.AssertPageTitle(subName); }