Skip to content

Instantly share code, notes, and snippets.

@philipjfulcher
Last active June 12, 2020 15:29
Show Gist options
  • Save philipjfulcher/160c31a7665f1e105e56e099df7bcb4d to your computer and use it in GitHub Desktop.
Save philipjfulcher/160c31a7665f1e105e56e099df7bcb4d to your computer and use it in GitHub Desktop.
Example po file for Protractor test for AngularJS in nx
//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