Skip to content

Commit 4810c60

Browse files
committed
fixed alert_accept command.
1 parent 3f87ac1 commit 4810c60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webdriver/extension_qt/q_view_executor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ void QViewCmdExecutor::AcceptOrDismissAlert(bool accept, Error** error) {
258258

259259
if(NULL != msgBox) {
260260
if(accept) {
261-
msgBox->accept();
261+
262+
msgBox->done(QMessageBox::Ok);
262263
} else {
263264
msgBox->close();
264265
}

0 commit comments

Comments
 (0)