* @param {!webdriver.Command} command The command to send. * @param {!Function=} opt_onSuccess The function to check the response with.
(command, opt_onSuccess)
| 143 | * @param {!Function=} opt_onSuccess The function to check the response with. |
| 144 | */ |
| 145 | function assertSendsSuccessfully(command, opt_onSuccess) { |
| 146 | return executor.execute(command) |
| 147 | .then(function(response) { |
| 148 | control.$verifyAll(); |
| 149 | if (opt_onSuccess) { |
| 150 | opt_onSuccess(response); |
| 151 | } |
| 152 | }); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * @param {!webdriver.Command} command The command to send. |
no test coverage detected