Last active
June 12, 2020 15:29
-
-
Save philipjfulcher/160c31a7665f1e105e56e099df7bcb4d to your computer and use it in GitHub Desktop.
Example po file for Protractor test for AngularJS in nx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ap.po.ts | |
import { browser, by, element } from 'protractor'; | |
export class AppPage { | |
navigateTo(): Promise<unknown> { | |
return browser.get(browser.baseUrl) as Promise<unknown>; | |
} | |
getTitleText(): Promise<string> { | |
return element( | |
by.css('h1.logo-font') | |
).getText() as Promise<string>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment