You are on page 1of 1

/* this.

clickMapForArea = function () {
var hereMap = element(by.id("here-map"));
browser.actions().mouseMove(hereMap, { x: 70, y: 70 }).click().perform();
var areatoolbind = element(by.binding('measureTool.totalArea'));
expect(areatoolbind).toBe('0.000m');

// areatoolbind.getText().then(function (value) {
// console.log("Area = " + value);
// });
browser.actions().mouseMove(hereMap, { x: 100, y: 100 }).click().perform();
expect(areatoolbind).toBe('0.000m');

// areatoolbind.getText().then(function (value) {
// console.log("Area = " + value);
// });

browser.actions().mouseMove(hereMap, { x: 500, y: 750 }).click().perform();


expect(areatoolbind).not.toBe('0.000m');
expect(areatoolbind).not.toBe('');
// areatoolbind.getText().then(function (value) {
// console.log("Area = " + value);
// });

// browser.actions().mouseMove(hereMap, { x: 200, y: 200 }).click().perform();


// expect(areatoolbind).not.toBe('0.000m');
// expect(areatoolbind).not.toBe('');
// areatoolbind.getText().then(function (value) {
// console.log("Area = " + value);
// });

}*/

You might also like