ZennoLab Assemblies Documentation
WaitFieldEmulationDelay Method
Example 
ZennoLab.CommandCenter Namespace > Instance Class : WaitFieldEmulationDelay Method
Waits for end of the filling up field.
Syntax
public void WaitFieldEmulationDelay()
Example
The following code example demonstrates uses of the WaitFieldEmulationDelay method.
// clear cookie
instance.ClearCookie();
 
// navigate to lessons.zennolab.com
instance.ActiveTab.Navigate("lessons.zennolab.com", "");
 
// wait for downloading
instance.ActiveTab.WaitDownloading();
 
// find html element
HtmlElement he = instance.ActiveTab.AllDocuments.Documents[0].FindElementByTag("textarea", 0);
 
// if html element exist
if (!he.IsNull && !he.IsVoid)
{
    // set value
    he.SetValue("It's just not a larger text for testing this method. And for showing how to use C# or PHP code for making the nice projects.", "Full", false);
    // and wait
    instance.WaitFieldEmulationDelay();
}
 
// but now shows message that all done
System.Windows.Forms.MessageBox.Show("All done", "End of action");
// clear cookie
$instance->ClearCookie();
 
// navigate to lessons.zennolab.com
$instance->ActiveTab->Navigate("lessons.zennolab.com", "");
 
// wait for downloading
$instance->ActiveTab->WaitDownloading();
 
// find html element
$he = $instance->ActiveTab->AllDocuments->Documents[0]->FindElementByTag("textarea", 0);
 
// if html element exist
if (!$he->IsNull && !$he->IsVoid)
{
    // set value
    $he->SetValue("It's just not a larger text for testing this method. And for showing how to use C# or PHP code for making the nice projects.", "Full", false);
    // and wait
    $instance->WaitFieldEmulationDelay();
}
 
// but now show message that all done
System\Windows\Forms\MessageBox::Show("All done", "End of action");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Instance Class
Instance Members