コード例 #1
0
        /// <inheritdoc/>
        UnspecifiedPageObject IFluentControlObjectWithTabs.WithIndex(int index, IWebTestActionOptions actionOptions)
        {
            var xPathSelector = string.Format(
                "(.//span{0})[{1}]",
                XPathUtils.CreateHasOneOfClassesCheck("tabStripTab", "tabStripTabSelected"),
                index);
            var itemScope = Scope.FindXPath(xPathSelector);

            return(SwitchTo(itemScope, actionOptions));
        }