Const
Returns text from an element. For inputs use getValue instead.
getValue
Context object.
The element selector for which to return text.
Optional
Element text content as a string.
const title = await getText(ctx, 'h1[id="title"]'); Copy
const title = await getText(ctx, 'h1[id="title"]');
Returns text from an element. For inputs use
getValueinstead.