What is the best way to get a DOM element in a Taiko test?
In the browser console I can do:
element = document.getElementsByClassName("XXXX")[0]
I've tried element = await $('.XXXX').get()[0];
using Taiko's $
selector (https://taiko-preview.gauge.org/#$). But that doesn't seem to give the actual DOM element (just a Taiko ElementWrapper
(https://taiko-preview.gauge.org/#elementwrapper)).
For context, the reason I want the DOM element is because I'd like to do element.parentElement
and then look at some of the properties to use in my test.
I'm relatively new to Taiko so any help is greatly appreciated.
Thanks