21
21
#include " BrowserFactory.h"
22
22
#include " CommandExecutor.h"
23
23
#include " IECommandExecutor.h"
24
- #include " IEWebDriverManagerCommandExecutor.h"
25
24
#include " messages.h"
26
25
#include " StringUtilities.h"
27
26
@@ -62,7 +61,6 @@ void IESession::Initialize(void* init_params) {
62
61
63
62
SessionParameters* params = reinterpret_cast <SessionParameters*>(init_params);
64
63
int port = params->port ;
65
- this ->driver_implementation_ = params->implementation ;
66
64
67
65
IECommandExecutorThreadContext thread_context;
68
66
thread_context.port = port;
@@ -76,28 +74,6 @@ void IESession::Initialize(void* init_params) {
76
74
}
77
75
78
76
ThreadProcedure thread_proc = &IECommandExecutor::ThreadProc;
79
- if (this ->driver_implementation_ != LegacyImplementation) {
80
- BrowserFactory factory;
81
- int browser_version = factory.browser_version ();
82
- bool is_component_registered = IEWebDriverManagerCommandExecutor::IsComponentRegistered ();
83
- if (this ->driver_implementation_ == VendorImplementation) {
84
- LOG (DEBUG) << " Attempting to use vendor-provided driver implementation per user request" ;
85
- thread_proc = &IEWebDriverManagerCommandExecutor::ThreadProc;
86
- } else if (this ->driver_implementation_ == AutoDetectImplementation &&
87
- browser_version >= 11 &&
88
- is_component_registered) {
89
- LOG (DEBUG) << " Using vendor-provided driver implementation per autodetection" ;
90
- thread_proc = &IEWebDriverManagerCommandExecutor::ThreadProc;
91
- } else {
92
- LOG (DEBUG) << " Falling back to legacy driver implementation per autodetection ("
93
- << " detected IE version: " << browser_version
94
- << " , vendor driver install is "
95
- << (is_component_registered ? " " : " not" )
96
- << " registered)." ;
97
- }
98
- } else {
99
- LOG (DEBUG) << " Using legacy driver implementation per user request" ;
100
- }
101
77
HANDLE thread_handle = reinterpret_cast <HANDLE>(_beginthreadex (NULL ,
102
78
0 ,
103
79
thread_proc,
@@ -258,14 +234,4 @@ bool IESession::ExecuteCommand(const std::string& serialized_command,
258
234
return session_is_valid;
259
235
}
260
236
261
- DriverImplementation IESession::ConvertDriverEngine (const std::string& engine) {
262
- if (engine == " VENDOR" ) {
263
- return VendorImplementation;
264
- }
265
- if (engine == " AUTODETECT" ) {
266
- return AutoDetectImplementation;
267
- }
268
- return LegacyImplementation;
269
- }
270
-
271
237
} // namespace webdriver
0 commit comments