parent
def4b728d0
commit
61070698cc
11 changed files with 79 additions and 211 deletions
|
@ -51,19 +51,6 @@ export class ElementAppPage {
|
|||
return this.settings.closeDialog();
|
||||
}
|
||||
|
||||
public async getClipboard(): Promise<string> {
|
||||
return await this.page.evaluate(() => navigator.clipboard.readText());
|
||||
}
|
||||
|
||||
/**
|
||||
* Find an open dialog by its title
|
||||
*/
|
||||
public async getDialogByTitle(title: string, timeout = 5000): Promise<Locator> {
|
||||
const dialog = this.page.locator(".mx_Dialog");
|
||||
await dialog.getByRole("heading", { name: title }).waitFor({ timeout });
|
||||
return dialog;
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the given room by name. The room must be visible in the
|
||||
* room list, but the room list may be folded horizontally, and the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue