Skip to content

Commit db52375

Browse files
committed
Resetting frame focus to top-level frame on refresh
The W3C WebDriver Specification dictates that issuing the Refresh command will reset the focus to the top-level frame. This commit brings the IE driver into compliance with that part of the spec.
1 parent 76882be commit db52375

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/iedriver/CommandHandlers/RefreshCommandHandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ namespace webdriver {
3838
return;
3939
}
4040
status_code = browser_wrapper->Refresh();
41+
browser_wrapper->SetFocusedFrameByElement(NULL);
4142
response->SetSuccessResponse(Json::Value::null);
4243
}
4344

0 commit comments

Comments
 (0)