@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
34 lines • 1.08 kB
TypeScript
import type { SDKClient } from '@browserstack/wdio-browserstack-service';
/**
* Base class for BrowserStack modules
*/
export default class BaseModule {
#private;
binSessionId: string | null;
platformIndex: number;
config: Record<string, unknown>;
client: SDKClient | null;
/**
* Create a new BaseModule
*/
constructor();
/**
* Ensure that a bin session ID is available
* @throws {Error} If binSessionId is missing
*/
ensureBinSession(): void;
/**
* Get the name of the module
* @returns {string} The module name
*/
getModuleName(): string;
/**
* Configure the module with session information
* @param {string} binSessionId - The bin session ID
* @param {number} platformIndex - The platform index
* @param {SDKClient | null} client - The gRPC client service
* @param {Object} config - Configuration options
*/
configure(binSessionId: string | null, platformIndex: number, client: SDKClient | null, config?: {}): void;
}
//# sourceMappingURL=baseModule.d.ts.map