import { By , Input , WebElement , WebView } from "vscode-extension-tester" ; import { delay } from "../helper" ; import { AbstractPageObject } from "./abstract-po" ; import { IIncludeData } from "./interface-po" ; export class IncludePageObject extends AbstractPageObject { async fillIncludePage ( data ) { await this . beginWebView ( ) ; await this . setValue ( "includePath" , data . join ( ";" ) ) ; await this . endWebView ( ) ; } async fireSave ( close ) { await this . beginWebView ( ) ; close ? await this . click ( "submitIDClose" ) : await this . click ( "submitID" ) ; await this . endWebView ( ) ; } async getIncludePage ( close = false ) { const result = [ ] ; await this . beginWebView ( ) ; const text = await this . getValue ( "includePath" ) ; result . push ( ... text . split ( ";" ) ) ; if ( close ) { await this . click ( "submitCloseID" ) ; } await this . endWebView ( ) ; return result ; } }