public void RefreshFieldEmulationDelay()
public void RefreshFieldEmulationDelay()
// 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");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.