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

Method NavigateForward

cpp/iedriver/Browser.cpp:514–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514int Browser::NavigateForward() {
515 LOG(TRACE) << "Entering Browser::NavigateForward";
516 LPSTREAM stream;
517 HRESULT hr = ::CoMarshalInterThreadInterfaceInStream(IID_IWebBrowser2, this->browser_, &stream);
518 unsigned int thread_id = 0;
519 HANDLE thread_handle = reinterpret_cast<HANDLE>(_beginthreadex(NULL,
520 0,
521 &Browser::GoForwardThreadProc,
522 (void *)stream,
523 0,
524 &thread_id));
525 if (thread_handle != NULL) {
526 ::CloseHandle(thread_handle);
527 }
528
529 this->set_wait_required(true);
530 return WD_SUCCESS;
531}
532
533unsigned int WINAPI Browser::GoForwardThreadProc(LPVOID param) {
534 HRESULT hr = ::CoInitialize(NULL);

Callers 1

ExecuteInternalMethod · 0.45

Calls 2

set_wait_requiredMethod · 0.80
LOGClass · 0.50

Tested by

no test coverage detected