blob: 4954880eff247a545b218387b72dba850a4b4e26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { browser, by, element } from 'protractor'
export class AppPage {
async closeWelcomeModal () {
const firstHandle = await browser.getWindowHandle()
if (await element(by.css('.configure-instance-button')).isPresent() === false) return
await element(by.css('.configure-instance-button')).click()
await browser.switchTo().window(firstHandle)
}
}
|