update API signature for taking input elements as param

not used for now but users of api don't need to be updated if appsee
supports web view in the future.