Here the projects loads successfully and a new browser window opens in
which a dialog appears. The code programatically clicks on the "OK"
button. However after that on the next page, it does not automatically
clicks on the the "applyset" button.
It gives and error saying scene not active.
However if I click on the "applyset " button manually, the scene
becomes active and the "HtmlContent_0" is fetched automatically.
Please help me out here. I've been stuck on this for last 2 days.
explorerManager.LoadProject("C:\\Documents and Settings\\hxsxsx\
\Desktop\\New Folder\\Lantronix_1.htp");
explorerManager.Connect();
explorerManager.Navigate("
http://10.153.20.19/secure/ltx_conf.htm");
dialogScene = explorerManager.WaitForDialog(30000);
dialogScene.DialogButton("OK").Click();
scene = explorerManager["Scene_0"];
scene.HtmlAnchor("applyset").Click();
scene.WaitForActive(30000);
string val =
(string)scene.HtmlContent("HtmlContent_0").Invoke("InnerHtml",
ControlActionType.GetProperty, "");
Console.WriteLine(val);