Hi,
I have seen similar posts but this xpath issue has not been addressed yet.
It seems using comment() or text() (e.g. xpath=(//*[@class=‘account-title’])/text()[2] ) in xpath will return the error “Cannot read property ‘toUpperCase’ of undefined” when actually the element was found.
If element was not found it turns the regular error message: “timeout reached when looking for element” which is correct
I do suspect that Kantu in the background is compiling xpath somehow using javascript engine because googling the error message “Cannot read property ‘toUpperCase’ of undefined” leads to javascript errors reports.
This is my html code trying to use the xpath comment xpath=(//*[@class=‘account-title’])/text()[2]
<span> @class="account-title" @ng-if="vm.account" @style="" Text1 <!-- --> <i> @ng-if="vm.data.hasDataSyncStatusIssues" @tabindex="0" </i> <!-- --> Text2 I try to get <!-- --> <span>