converter/e2e/app.po.ts

26 lines
568 B
TypeScript
Raw Normal View History

2017-04-15 13:50:10 +02:00
import {browser, by, element} from "protractor";
2017-04-15 14:47:43 +02:00
export class ConvertorizrPage {
navigateTo() {
return browser.get('/');
}
2017-04-15 13:50:10 +02:00
public foo() {
return "bar";
}
public getInputfieldContent(index: number): Promise<any> {
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;
}
}