Closed jason0x43 closed 5 years ago
Since the methods that need updating are all in Command
, and Command
will have a generic type indicating whether it's dealing with an Element
or Element[]
, we should be able to deal with this using conditional types.
In at least Leadfoot 2.2.x,
getSpecAttribute
is typed to always return a string, even when the context is an array. It should behave like other element methods (e.g.,getVisibleText
) and be typed to return an array when the context is an array (which it does).