import {browser} from "protractor"; export class AbstractPage { baseUrl: string = browser.baseUrl + '/'; validateCurrentUrl(urlEnding: string) { expect(browser.getCurrentUrl()).toBe(this.baseUrl + urlEnding); } }