本文整理匯總了TypeScript中pretend.Post函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript Post函數的具體用法?TypeScript Post怎麽用?TypeScript Post使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Post函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: setTimeout
@Post('/session/{sessionId}/timeouts')
public async setTimeout(sessionId: string, body: ISetTimeoutRequest): Promise<IResponse> { return; }
示例2: get
@Post('/session/{sessionId}/url')
public async get(sessionId: string, body: IGetRequest): Promise<IResponse> { return; }
示例3:
// TODO
// @Get('/session/{sessionId}/source')
// public async getPageSource(sessionId: string): Promise<any> { return; }
// Selenium API
@Post('/session/{sessionId}/execute')
// Webdriver API
// @Post('/session/{sessionId}/execute/sync')
public async executeScript<T>(sessionId: string, body: IExecuteScriptRequest): Promise<IValueResponse<T>> { return; }
示例4: newSession
@Post('/session')
public async newSession(body: ISessionRequest): Promise<IResponse> { return; }
示例5: elementSendKeys
// TODO
// @Post('/session/{sessionId}/element/{elementId}/clear')
// public async elementClear(sessionId: string, elementId: string): Promise<any> { return; }
// Selenium API
@Post('/session/{sessionId}/element/{elementId}/value')
// Webdriver API
// @Post('/session/{sessionId}/element/{elementId}/sendKeys')
public async elementSendKeys(sessionId: string, elementId: string, body: IElementSendKeysRequest): Promise<IResponse> { return; }
示例6: elementClick
@Post('/session/{sessionId}/element/{elementId}/click')
public async elementClick(sessionId: string, elementId: string): Promise<IResponse> { return; }
示例7: findElements
@Post('/session/{sessionId}/elements')
public async findElements(sessionId: string, body: IFindElementsRequest): Promise<IValueResponse<IElement[]>> { return; }
示例8: setWindowSize
// Selenium API
@Post('/session/{sessionId}/window/current/size')
// Webdriver API
// @Post('/session/{sessionId}/window/size')
public async setWindowSize(sessionId: string, body: ISetWindowSizeRequest): Promise<IResponse> { return; }
示例9: refresh
@Post('/session/{sessionId}/refresh')
public async refresh(sessionId: string): Promise<IResponse> { return; }