public String createNodeInDataBrowser() throws Exception { goToWebadminStartPage(); clickOnTab("Data browser"); String prevItemHeadline = getCurrentDatabrowserItemSubtitle(); clickOnButton("Node"); dataBrowserItemSubtitle.waitForTextToChangeFrom(prevItemHeadline); return getCurrentDatabrowserItemSubtitle(); }
public String createRelationshipInDataBrowser() throws Exception { createNodeInDataBrowser(); String prevItemHeadline = getCurrentDatabrowserItemSubtitle(); clickOnButton("Relationship"); getElement(By.id("create-relationship-to")).sendKeys("0"); clickOnButton("Create"); dataBrowserItemSubtitle.waitForTextToChangeFrom(prevItemHeadline); return getCurrentDatabrowserItemSubtitle(); }
public long createRelationshipInDataBrowser() { createNodeInDataBrowser(); String prevItemHeadline = getCurrentDatabrowserItemSubtitle(); clickOnButton("Relationship"); getElement(By.id("create-relationship-to")).sendKeys("0"); clickOnButton("Create"); dataBrowserItemSubtitle.waitForTextToChangeFrom(prevItemHeadline); return extractEntityIdFromLastSegmentOfUrl(getCurrentDatabrowserItemSubtitle()); }