import { FtrService } from '../ftr_provider_context' ; export class BannersPageObject extends FtrService { private readonly find = this . ctx . getService ( 'find' ) ; isTopBannerVisible ( ) { return this . find . existsByCssSelector ( '.header__topBanner .kbnUserBanner__container' ) ; } async getTopBannerText ( ) { if ( ! ( await this . isTopBannerVisible ( ) ) ) { return '' ; } const bannerContainer = await this . find . byCssSelector ( '.header__topBanner .kbnUserBanner__container' ) ; return bannerContainer . getVisibleText ( ) ; } }