79230952

Date: 2024-11-27 15:51:42
Score: 0.5
Natty:
Report link

We can retrieve text content using the "getAttributes" action.

Use it like so:

const attributes = await element(by.id('ElementId')).getAttributes();
console.log("text : ", attributes.text);
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Guian