| 1129 | } |
| 1130 | |
| 1131 | bool 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 | |
| 1150 | void IECommandExecutor::CreateWaitThread(const std::string& deferred_response) { |
| 1151 | this->CreateWaitThread(deferred_response, false); |
no test coverage detected