import {browser, by, element} from "protractor"; export class ConvFriedliInfoPage { navigateTo() { return browser.get('/'); } public foo() { return "bar"; } public getInputfieldContent(index: number): Promise { let css1 = by.css('app-root div.inputwrapper'); console.log(css1); let el1 = element.all(css1)[index]; console.log(el1); let css2 = by.css('.textwrapper textarea'); console.log(css2); let el2 = el1.findElement(css2); console.log(el2); let t = el2.getText(); console.log(t); return t; } }