ZennoLab Assemblies Documentation
SetValue Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : SetValue Method
value

Type: System.String

The new value for this html element.

emulation

Type: System.String

The emulation level. May be: "None", "Middle" or "Full".

useSelectedItems

Type: System.Boolean

true if you need use automatic filling standard "select" fields; otherwise false.

Glossary Item Box

Sets the value of the html element.

Syntax

C# 
public void SetValue( 
   string value,
   string emulation,
   bool useSelectedItems
)

Parameters

value

Type: System.String

The new value for this html element.

emulation

Type: System.String

The emulation level. May be: "None", "Middle" or "Full".

useSelectedItems

Type: System.Boolean

true if you need use automatic filling standard "select" fields; otherwise false.

Example

The following code example demonstrates uses of the SetValue method.
C#Copy Code
// find element
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// set value
he.SetValue("true", "Middle", true);
PHPCopy Code
// find element
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// set value
$he->SetValue("true", "Middle", true);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2014 All Rights Reserved.