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
{ | |
"compilerOptions": { | |
// This must be specified if "paths" is set | |
"baseUrl": ".", | |
// Relative to "baseUrl" | |
"paths": { | |
"*": [ | |
"*", | |
"src/*", | |
] |
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
/** | |
* Puppeteer Page class extension | |
*/ | |
const Page = require('puppeteer/lib/Page').Page; | |
/** | |
* Returns the locator on the page | |
* @param {string} selector on the page | |
* @returns {Promise<JSHandle>} promise of type JSHandle |
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
import { ElementArrayFinder, ElementFinder, promise} from 'protractor'; | |
declare module 'protractor/built/element' { | |
export interface ElementArrayFinder { | |
getByText(text: string) : ElementFinder; | |
hasItem(text: string) : Promise<boolean>; | |
} | |
export interface ElementFinder { |