Method for getting browser name through injected driver