Well, what if you have 100 widgets that are the same in the page? Will it select them all? The verify that you have the right Type.class, that also suppose that your selenium test have a dependency on the project classes.

I'll differ on this, I'm more worried about readability and maintainability then speed in test writing :D