converter/e2e/app.po.ts

25 lines
578 B
TypeScript

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