Forum Discussion
I have an example script code below:
page1 = iexplore.Page("http://" + servername + ":" + port + "/" + r2wcontext + "/" + "pageMartViewer.do*");
if (page1.document.all.Item("infoMessageDiv").outerText == "The document has no annotations. ")
Log.Message("The annotation is deleted correctly by the user having manage annotations permissions","",pmNormal,Attr)
else
Log.Error("There is some error in creating the annotation","",pmNormal,Attr);
I have also attached the error log screenshot. So when it does not find the page object "page1",it continues on error but the execution ends at the line where if loops starts and the corresponding error line in log says "Exception", I have both the options disabled "Stop on error" and "Error Dialog". So why does it stops at the loop saying exception in log ? If the options are disabled,it should continue to run the script .. It should take any exception as 'EXCEPTION' whether it is a loop code or anything else .
Thanks,
Sumedha
Related Content
- 5 years ago
- 14 years ago
Recent Discussions
- 3 hours ago
- 3 days ago