The Sauce Labs API

Hi, reading the Introduction to automated testing article, I tried running call_sauce.js but got this error:

let myAccount = new SauceLabs({
                ^

TypeError: SauceLabs is not a constructor

Can you please help me figuring out how to fix it?

Thanks,

Hello @Rafael_Green

not sure of the cause but can you check the folowing

  1. check if you installed the saucelabs api correctly try install it globally
  2. check the configration file if you used npm
  3. check the syntax for the account statement
  4. make sure to check the version of the saucelabs

could be other reason too but hope those help and have a nice day