I am looking to retrieve a focused element's HTML. Looking at the webdriver.io documentation, the method .getActiveElement()
is supposed to do the trick. However, my IDE (WebStorm) shows an error stating that it is an "unresolved function or method" (the method isn't recognized). I've also seen someone mention the method .elementActive()
, however this method shows up unrecognized as well.
Help! How can I retrieve the HTML of the current focused element?