07-09-21 12:41 AM
<head>
<meta charset="utf-8"/>
<title>sample01</title>
</head>
<body>
<button onclick="getNow()">show dialog</button>
<script type="text/javascript">
function getNow() {
var now = new Date();
var year = now.getFullYear();
var mon = now.getMonth()+1;
var day = now.getDate();
var hour = now.getHours();
var min = now.getMinutes();
var sec = now.getSeconds();
var s = year + "/" + mon + "/" + day + " - " + hour + ":" + min + ":" + sec;
alert(s);
}
</script>
</body>
</html>
If I view this in IE;
This dialog can be detected by the window handle "#32770", so I can retrieve the dialog message and press the OK button.
If I view this in Edge;
How can I detect and manipulate this dialog other than surface automation?
------------------------------
Mitsuko
Asia/Tokyo
------------------------------
07-09-21 05:55 AM
07-09-21 02:54 PM
09-09-21 01:04 AM
09-09-21 07:28 AM
09-09-21 07:33 AM
09-09-21 03:52 PM
13-09-21 12:05 AM
I was able to close dialog. Thanks for the good advice.
How do you handle dialog that have 2 buttons to select? (OK/Cancel or Yes/No)
13-09-21 07:04 AM