There doesn't appear to be a massive waste of time by iterating through the entire screen, finding all elements, and then only returning the first one, but if possible, matchElements on webdriver.ts should be optimized, so that if it is called from getUIElement, it exits once a singular match is found.
There doesn't appear to be a massive waste of time by iterating through the entire screen, finding all elements, and then only returning the first one, but if possible,
matchElementsonwebdriver.tsshould be optimized, so that if it is called fromgetUIElement, it exits once a singular match is found.