import { BrowserSessionId, ProjectId, TestRunId, UserId, WebmateSeleniumSessionId } from "../types"; import { WebmateAPISession } from "../webmate-api-session"; import { Observable } from "rxjs"; import { Browser } from "../browser"; import { TestRun } from "../testmgmt/test-run"; import { TestRunEvaluationStatus } from "../testmgmt/test-run-evaluation-status"; export declare class WebmateSeleniumSession { private readonly apiSession; private readonly browserSessionId?; private readonly seleniumSessionId?; private proxy; private cachedValue?; constructor(apiSession: WebmateAPISession, browserSessionId?: string | undefined, seleniumSessionId?: string | undefined); private fetchSessionData; fetchSessionDataWithoutForcedRefresh(): Observable; /** * Internal id of Selenium session in webmate. */ getId(): Observable; /** * UserId of user who has started the session. */ getUserId(): Observable; /** * Browser used in the selenium session. */ getBrowser(): Observable; /** * Was a proxy being used? */ usingProxy(): Observable; /** * State of the Selenium session. May be one of: created, requestingbusinesstransaction, requestingtickt, requestingsession, * waitingforsession, requestinglease, running, done, timeout, failed, canceled, invalid */ getState(): Observable; /** * Internal representation of the requested Selenium capabilities */ getSeleniumCapabilities(): Observable; /** * Project where the session was started. */ getProjectId(): Observable; /** * Id of BrowserSession / Expedition */ getBrowserSessionId(): Observable; /** * If this session has failed, return the error message or null otherwise. */ getErrorMessage(): Observable; /** * Id of webmate TestRun associated with Selenium session. */ getTestRunId(): Observable; /** * Get TestRun associated with Selenium session or null if none is found. */ getTestRun(): Observable; /** * Finish TestRun associated with Selenium session. * * @param msg Short message explaining the result of the test run. * @param detail Detailed information, e.g. stack trace. */ finishTestRun(status: TestRunEvaluationStatus, msg?: string, detail?: string): Observable; }