Upon analyzing the situation, I've come across an element named this.page.taskAssignment
which is categorized as an ElementFinder
. During my UI tests, when I attempt to click on this element, there seems to be no response. It has led me to believe that perhaps I am clicking on the wrong element; hence, I wish to verify what exactly is being clicked by examining the HTML in the debugger.
My endeavor with the WebStorm debugger involved:
this.page.taskAssignment.element.getTagName().then(e => {console.log(e)})
. However, despite my efforts, the output remains a promise without any sight of the HTML content.
Inquiry: How can I retrieve the HTML content of that specific element in the form of a string
, rather than a Promise
?