Webdriverio docs have an option to find elements by text, e.g.:
<a href="https://webdriver.io">WebdriverIO</a>
const link = $('=WebdriverIO')
However, when I put $('=WebdriverIO')
in browser console, I am getting:
VM2375:1 Uncaught DOMException: Failed to execute '$' on 'CommandLineAPI': '=WebdriverIO' is not a valid selector.
at <anonymous>:1:1
Why am I getting an error in console even though this selector works in my wdio automated test?