A little fuzzy on the syntax but you could do something like this if using the OR and you have all the anticipated objects. Typically you would use descriptive programming for such a scenario.
Set obj = "Browser(""Google"").Page(""Google"")."¶meter& "(""Search"")"""
Do need to consider what saikri mentions, what I have done in the past is just make one common input function then pass all objects to it. Inside that function was a switch statement that entered the data properly based on the object type.