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

Method GetIEVersion

cpp/iedriver/BrowserFactory.cpp:1371–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1369}
1370
1371void BrowserFactory::GetIEVersion() {
1372 LOG(TRACE) << "Entering BrowserFactory::GetIEVersion";
1373
1374 std::string ie_version = FileUtilities::GetFileVersion(this->ie_executable_location_);
1375
1376 if (ie_version.size() == 0) {
1377 // 64-bit Windows 8 has a bug where it does not return the executable location properly
1378 this->ie_major_version_ = -1;
1379 LOG(WARN) << "Couldn't find IE version for executable "
1380 << LOGWSTRING(this->ie_executable_location_)
1381 << ", falling back to "
1382 << this->ie_major_version_;
1383 return;
1384 }
1385
1386 std::stringstream version_stream(ie_version);
1387 version_stream >> this->ie_major_version_;
1388}
1389
1390bool BrowserFactory::ProtectedModeSettingsAreValid() {
1391 LOG(TRACE) << "Entering BrowserFactory::ProtectedModeSettingsAreValid";

Callers 1

BrowserFactoryMethod · 0.95

Calls 2

LOGClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected