Esempio n. 1
0
        private T OpenUbsLoginsTab <T>(params string[] tabItemNames) where T : new()
        {
            var tabItem =
                new UbsWebElement(
                    By.XPath(
                        $"{_ubsLoginsButton.Selector.GetLocator()}//following-sibling::ul//*[{XpathHelper.CombineFewTextPartsInOneWithOr(tabItemNames)}]"));

            return(OpenTab <T>(_ubsLoginsButton, tabItem));
        }
Esempio n. 2
0
        private T OpenMainMenuTab <T>(UbsWebElement ubsMainMenuWebElement, params string[] tabItemNames) where T : new()
        {
            var tabItem =
                new UbsWebElement(
                    By.XPath(
                        $"{ubsMainMenuWebElement.Selector.GetLocator()}//following-sibling::div//a[{XpathHelper.CombineFewTextPartsInOneWithOr(tabItemNames)}]"));

            return(OpenTab <T>(ubsMainMenuWebElement, tabItem));
        }