ZennoLab Assemblies Documentation
RefreshFieldEmulationDelay Method
Example 
ZennoLab.CommandCenter Namespace > Instance Class : RefreshFieldEmulationDelay Method
Refresh the field emulation delay.
Syntax
public void RefreshFieldEmulationDelay()
Example
The following code example demonstrates uses of the RefreshFieldEmulationDelay 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 not exist
if (he.IsNull && he.IsVoid) return -1;
             
// set input field emulation delay
instance.FieldEmulationDelay = 20000;
            
// restarting input delay timer for the first call WaitFieldEmulationDelay
instance.RefreshFieldEmulationDelay();
             
// 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 if delay time has not passed
instance.WaitFieldEmulationDelay();
 
// but now shows 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