Inserts the specified element before this element.
Syntax
Example
The following code example demonstrates uses of the
InsertElementBefore method.
| C# | Copy Code |
|---|
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
HtmlElement hePrev = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByName("rad");
he.InsertElementBefore(hePrev); |
| PHP | Copy Code |
|---|
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
$hePrev = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByName("rad");
$he->InsertElementBefore($hePrev); |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also