sauce.d.ts 924 B

1234567891011121314151617181920212223242526272829
  1. /// <reference types="q" />
  2. import * as q from 'q';
  3. import { Config } from '../config';
  4. import { DriverProvider } from './driverProvider';
  5. export declare class Sauce extends DriverProvider {
  6. sauceServer_: any;
  7. constructor(config: Config);
  8. /**
  9. * Hook to update the sauce job.
  10. * @public
  11. * @param {Object} update
  12. * @return {q.promise} A promise that will resolve when the update is complete.
  13. */
  14. updateJob(update: any): q.Promise<any>;
  15. /**
  16. * Configure and launch (if applicable) the object's environment.
  17. * @public
  18. * @return {q.promise} A promise which will resolve when the environment is
  19. * ready to test.
  20. */
  21. protected setupDriverEnv(): q.Promise<any>;
  22. /**
  23. * Get the Sauce Labs endpoint
  24. * @private
  25. * @param {string} region
  26. * @return {string} The endpoint that needs to be used
  27. */
  28. private getSauceEndpoint(region);
  29. }