Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
285 bytes
|
Line | |
---|
1 | import { browser, by, element } from 'protractor';
|
---|
2 |
|
---|
3 | export class AppPage {
|
---|
4 | async navigateTo(): Promise<unknown> {
|
---|
5 | return browser.get(browser.baseUrl);
|
---|
6 | }
|
---|
7 |
|
---|
8 | async getTitleText(): Promise<string> {
|
---|
9 | return element(by.css('<%= rootSelector %> .content span')).getText();
|
---|
10 | }
|
---|
11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.