convert Input helper to use a Locator and classes. this allows adding of new Input types.