(position)
| 1 | var TABLE_EXAMPLE_URL = 'http://localhost:9000/#/table-example'; |
| 2 | |
| 3 | var 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 | |
| 17 | var TableExamplePage = function () { |
| 18 | this.get = function () { |
nothing calls this directly
no outgoing calls
no test coverage detected