[error] Cannot read properties of undefined (reading 'getCommandHandler')
复制代码
方法使用:
verifyText(locator, pattern)
Generated from getText(locator)
Arguments:
locator - an element locator
Returns:
the text of the element
Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.