I am attempting to verify that the focused element is set on page load as one of my tests.
This seems to be working, and I can verify with the element explorer, but
I managed to find a way to compare an element with the focused one without relaying to any attributes:
element(by.css('div.my-class')).equals(browser.driver.switchTo().activeElement()) .then(equals => expect(equals).toBe(true));