| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Instance Class : WaitFieldEmulationDelay Method |
public void WaitFieldEmulationDelay()
// 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");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.