Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Error Message for Browser Compatibility Information. #3809

Merged
merged 9 commits into from
Jul 26, 2023
2 changes: 1 addition & 1 deletion lib/api/client-commands/network/setConditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SetNetworkConditions extends ClientCommand {

performAction(callback) {
if (!this.api.isChrome() && !this.api.isEdge()) {
const error = new Error('SetNetworkConditions is not supported while using this driver');
const error = new Error('The command .setNetworkConditions() is only supported in Chromium based drivers');
Logger.error(error);

return callback(error);
Expand Down
2 changes: 1 addition & 1 deletion lib/api/client-commands/registerBasicAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RegisterBasicAuth extends ClientCommand {

performAction(callback) {
if (!this.api.isChrome() && !this.api.isEdge()) {
const error = new Error('RegisterBasicAuth is not supported while using this driver');
const error = new Error('The command .registerBasicAuth() is only supported in Chromium based drivers');
Logger.error(error);

return callback(error);
Expand Down
2 changes: 1 addition & 1 deletion test/src/api/commands/client/testRegisterBasicAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('.registerBasicAuth()', function () {
}).then(client => {
client.api.registerBasicAuth('admin', 'admin', function(result){
assert.strictEqual(result.status, -1);
assert.strictEqual(result.error, 'RegisterBasicAuth is not supported while using this driver');
assert.strictEqual(result.error, 'The command .registerBasicAuth() is only supported in Chromium based drivers');
});

client.start(done);
Expand Down
2 changes: 1 addition & 1 deletion test/src/api/commands/client/testSetNetworkConditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('.setNetworkConditions()', function () {
},
function (result) {
assert.strictEqual(result.status, -1);
assert.strictEqual(result.error, 'SetNetworkConditions is not supported while using this driver');
assert.strictEqual(result.error, 'The command .setNetworkConditions() is only supported in Chromium based drivers');
}
);
client.start(done);
Expand Down