MCPcopy Index your code
hub / github.com/angular-ui-tree/angular-ui-tree / TableExamplePageNode

Function TableExamplePageNode

e2e/table-example/page.js:3–15  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

1var TABLE_EXAMPLE_URL = 'http://localhost:9000/#/table-example';
2
3var TableExamplePageNode = function (position) {
4 var nodesXpath = '//*[@id="tree-root"]/tbody/tr[contains(@class,"angular-ui-tree-node")]';
5 var thisNodeXpath = nodesXpath + '[' + position + ']';
6 var nodeHandlesLocator = by.css('[ui-tree-handle]');
7 var nodeElement = element(by.xpath(thisNodeXpath));
8 var handle = nodeElement.all(nodeHandlesLocator).first();
9
10 this.getElement = function () { return nodeElement; }
11 this.getHandle = function () { return handle; };
12 this.getText = function () {
13 return nodeElement.getText();
14 };
15}
16
17var TableExamplePage = function () {
18 this.get = function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected