// clear cookie
instance.ClearCookie();
// navigate to lessons.zennolab.com
instance.ActiveTab.Navigate("lessons.zennolab.com", "");
// waiting for downloading
instance.ActiveTab.WaitDownloading();
// find link by IntelliSearch
HtmlElement he = instance.FindElementByIntelliSearch("", "Simple registration", true, false);
// if html element found
if (!he.IsVoid)
{
// click on link
he.RiseEvent("click", "Full");
}
// find password field
he = instance.FindElementByIntelliSearch("Registration", "Password", false, false);
// if html element found
if (!he.IsVoid)
{
// set value
he.SetValue("password", "Full", false);
}
// find password field again in blocked
he = instance.FindElementByIntelliSearch("Registration", "Password", false, true);
// if html element found
if (!he.IsVoid)
{
// get value
return he.GetValue(false);
}
// clear cookie
$instance->ClearCookie();
// navigate to lessons.zennolab.com
$instance->ActiveTab->Navigate("lessons.zennolab.com", "");
// waiting for downloading
$instance->ActiveTab->WaitDownloading();
// find link by IntelliSearch
$he = $instance->FindElementByIntelliSearch("", "Simple registration", true, false);
// if html element found
if (!$he->IsVoid)
{
// click on link
$he->RiseEvent("click", "Full");
}
// find password field
$he = $instance->FindElementByIntelliSearch("Registration", "Password", false, false);
// if html element found
if (!$he->IsVoid)
{
// set value
$he->SetValue("password", "Full", false);
}
// find password field again in blocked
$he = $instance->FindElementByIntelliSearch("Registration", "Password", false, true);
// if html element found
if (!$he->IsVoid)
{
// get value
return $he->GetValue(false);
}