Handle invalid selectors explicitly
Added selection by id
Share ViewFactory implementation between android tests and robolectric