Update project-map.po.ts

This commit is contained in:
piotrpekala7 2020-02-27 11:30:05 +01:00
parent cf60f1a046
commit 53b3128c66

View File

@ -39,7 +39,8 @@ export class ProjectMapPage {
}
async verifyIfNodeWithLabelExists(labelToFind: string) {
let nodeLabel = await browser.driver.findElement(by.css('#map > g > g.layer > g.nodes > g:nth-child(1) > g > g > g > text'));
this.helper.sleep(5000);
let nodeLabel = await browser.driver.findElement(by.css('#map > g > g.layer > g.nodes > g > g > g > g > text'));
let selectedNode;
let textFromNodeLabel = await nodeLabel.getText();
if (textFromNodeLabel == labelToFind) selectedNode = nodeLabel;