internal void HighLightElementFromNode(TreeNode treeNode) { string xpath = GetXPathFromTreeNode(treeNode); var by = WebSpyBrowser.ConvertLocatorSearchMethodToBy(LocatorSearchMethod.XPath, xpath); WebSpyBrowser.HighlightElement(by); }
internal void HighLightWebElement(WebElementDefinition element) { if (!IsValidForm()) { return; } var by = WebSpyBrowser.ConvertLocatorSearchMethodToBy(element.HowToSearch, element.Locator); WebSpyBrowser.HighlightElement(by); }