blob: dd45786466680bb19617afc2c24acd3b32f345ae [file] [log] [blame]
Lvbo163f721b1a2017-08-23 17:27:33 +08001/**
YuanHu66266de2018-03-28 11:26:36 +08002 * Copyright (c) 2017-2018 ZTE Corporation.
Lvbo163f721b1a2017-08-23 17:27:33 +08003 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * and the Apache License 2.0 which both accompany this distribution,
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
7 * and http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Contributors:
10 * ZTE - initial API and implementation and/or initial documentation
11 */
12
13import { browser, by, element } from 'protractor';
14
15export class AppPage {
16 navigateTo() {
17 return browser.get('/');
18 }
19
20 getParagraphText() {
21 return element(by.css('app-root h1')).getText();
22 }
23}