Skip to content

Commit

Permalink
Merge branch 'master' into release-v2.0.5-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 authored Feb 21, 2024
2 parents 600d3bf + af5aca0 commit c6b4836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports.percyScreenshot = async function percyScreenshot(driver, name, op
if (!name) throw new Error('The `name` argument is required.');
if (!(await module.exports.isPercyEnabled())) return;
let log = utils.logger('selenium-webdriver');
if (utils.percy?.type === 'web') {
if (utils.percy?.type !== 'automate') {
throw new Error('Invalid function call - percyScreenshot(). Please use percySnapshot() function for taking screenshot. percyScreenshot() should be used only while using Percy with Automate. For more information on usage of PercySnapshot(), refer doc for your language https://docs.percy.io/docs/end-to-end-testing');
}

Expand Down

0 comments on commit c6b4836

Please sign in to comment.