Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/ns-capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,18 @@ export class NsCapabilities implements INsCapabilities {

private resolveApplication() {
if (this.isSauceLab) {
this._appiumCaps.app = `sauce-storage:${this.appPath}`
if (this.appPath){
if (this.appPath.startsWith("http")){
this._appiumCaps.app = this.appPath;
} else {
this._appiumCaps.app = `sauce-storage:${this.appPath}`;
}
} else if (!this._appiumCaps.app){
throw new Error("Neither appPath option nor capabilities.app provided!!!");
}

this._ignoreDeviceController = true;
console.log("Using Sauce Labs. The application path is changed to: " + this.appPath);
console.log("Using Sauce Labs. The application path is changed to: " + this._appiumCaps.app);
} else {
this.appiumCaps.app = getAppPath(this);
this._appPath = this._appiumCaps.app;
Expand Down