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

Function assertSendsSuccessfully

javascript/webdriver/test/http/http_test.js:145–153  ·  view source on GitHub ↗

* @param {!webdriver.Command} command The command to send. * @param {!Function=} opt_onSuccess The function to check the response with.

(command, opt_onSuccess)

Source from the content-addressed store, hash-verified

143 * @param {!Function=} opt_onSuccess The function to check the response with.
144 */
145function 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.

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected