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

Method IsCommandValidWithAlertPresent

cpp/iedriver/IECommandExecutor.cpp:1131–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129}
1130
1131bool IECommandExecutor::IsCommandValidWithAlertPresent() {
1132 std::string command_type = this->current_command_.command_type();
1133 if (command_type == webdriver::CommandType::GetAlertText ||
1134 command_type == webdriver::CommandType::SendKeysToAlert ||
1135 command_type == webdriver::CommandType::AcceptAlert ||
1136 command_type == webdriver::CommandType::DismissAlert ||
1137 command_type == webdriver::CommandType::SetAlertCredentials ||
1138 command_type == webdriver::CommandType::GetTimeouts ||
1139 command_type == webdriver::CommandType::SetTimeouts ||
1140 command_type == webdriver::CommandType::Screenshot ||
1141 command_type == webdriver::CommandType::ElementScreenshot ||
1142 command_type == webdriver::CommandType::GetCurrentWindowHandle ||
1143 command_type == webdriver::CommandType::GetWindowHandles ||
1144 command_type == webdriver::CommandType::SwitchToWindow) {
1145 return true;
1146 }
1147 return false;
1148}
1149
1150void IECommandExecutor::CreateWaitThread(const std::string& deferred_response) {
1151 this->CreateWaitThread(deferred_response, false);

Callers 1

DispatchCommandMethod · 0.95

Calls 1

command_typeMethod · 0.80

Tested by

no test coverage detected