var parent = element.FindParentElement("tag_name", Search conditions);
tag_name
is the HTML tag of the element to be found (can be empty string).var core = new ActiveXObject("OpenTwebst.Core");
var browser = core.StartBrowser("http://www.google.com/");
var elem = browser.FindElement("input text", "");
// Search the first parent having the name "f".
var parent = elem.FindParentElement("", "name=f");
WScript.Echo(parent.tagName + " " + parent.nativeElement.innerText);