2017-04-15 13:50:10 +02:00
|
|
|
import {browser, by, element} from "protractor";
|
2017-04-08 00:24:44 +02:00
|
|
|
|
2017-04-15 14:47:43 +02:00
|
|
|
export class ConvertorizrPage {
|
2017-04-08 00:24:44 +02:00
|
|
|
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;
|
2017-04-08 00:24:44 +02:00
|
|
|
}
|
|
|
|
}
|