コード例 #1
0
        internal void HighLightElementFromNode(TreeNode treeNode)
        {
            string xpath = GetXPathFromTreeNode(treeNode);
            var    by    = WebSpyBrowser.ConvertLocatorSearchMethodToBy(LocatorSearchMethod.XPath, xpath);

            WebSpyBrowser.HighlightElement(by);
        }
コード例 #2
0
        internal void HighLightWebElement(WebElementDefinition element)
        {
            if (!IsValidForm())
            {
                return;
            }

            var by = WebSpyBrowser.ConvertLocatorSearchMethodToBy(element.HowToSearch, element.Locator);

            WebSpyBrowser.HighlightElement(by);
        }