yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Form } from '../e2elib/lib/src/pageobjects/form.component';
import { Button } from '../e2elib/lib/src/pageobjects/button/button.component';
import { Label } from '../e2elib/lib/src/pageobjects/label.component';
 
/**
 * front end service message box action form.
 */
export class WebMessageBox extends Form {
  private readonly _btnYes = new Button('btnAction8');
  private readonly _btnNo = new Button('btnAction9');
  private readonly _lblMessage = new Label('lblMessage');
 
  public constructor() {
    super('frmFrontEndServiceMessageBoxAction');
  }
 
  public async selectYes(): Promise<void> {
    await this._btnYes.click();
    await this.waitUntilHidden();
  }
 
  public async selectNo(): Promise<void> {
    await this._btnNo.click();
    await this.waitUntilHidden();
  }
 
  public async getMessage(): Promise<string> {
    return this._lblMessage.getText();
  }
}