MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ExecuteInternal

Method ExecuteInternal

cpp/iedriver/CommandHandlers/RefreshCommandHandler.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void RefreshCommandHandler::ExecuteInternal(
31 const IECommandExecutor& executor,
32 const ParametersMap& command_parameters,
33 Response* response) {
34 BrowserHandle browser_wrapper;
35 int status_code = executor.GetCurrentBrowser(&browser_wrapper);
36 if (status_code != WD_SUCCESS) {
37 response->SetErrorResponse(ERROR_NO_SUCH_WINDOW, "Unable to get browser");
38 return;
39 }
40 status_code = browser_wrapper->Refresh();
41 browser_wrapper->SetFocusedFrameByElement(NULL);
42 response->SetSuccessResponse(Json::Value::null);
43 }
44
45} // namespace webdriver

Callers

nothing calls this directly

Calls 5

GetCurrentBrowserMethod · 0.80
SetErrorResponseMethod · 0.80
SetSuccessResponseMethod · 0.80
RefreshMethod · 0.45

Tested by

no test coverage detected