本文整理汇总了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; }