Skip to content

Commit

Permalink
Used getText to get innerText of element
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 authored and elizavetaRa committed Jun 8, 2021
1 parent f08c7b5 commit 971decb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/acceptance/pageObjects/FilesPageElement/filesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ module.exports = {
const rowSelector = this.getFileRowSelectorByFileName(path, elementType)
return this.useXpath()
.waitForElementVisible(rowSelector)
.getAttribute(linkSelector, 'innerText', function(result) {
.waitForElementVisible(linkSelector)
.getText(linkSelector, function(result) {
assert.strictEqual(result.value.trim(), path, 'displayed file name not as expected')
})
.useCss()
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/pageObjects/personalPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ module.exports = {
return this.waitForElementVisible('@permalinkCopyButton').click('@permalinkCopyButton')
},
checkSidebarItem: function(resourceName) {
return this.getAttribute('@sidebarItemName', 'innerText', function(itemName) {
return this.getText('@sidebarItemName', function(itemName) {
this.assert.strictEqual(
itemName.value,
resourceName,
Expand Down

0 comments on commit 971decb

Please sign in to comment.