Cannot Get Browser Name With SmartWaitWebDriver

Hello there,

I have a couple of tests where I need to handle different browsers differently (Safari/Chrome/…).
I was previously using a method that is also described here.

With this is no longer possible as driver.toString() gets me something like
that doesn’t contain any (obvious/splittable) hint on what the currently used driver is.

How to fix this?
Any help is greatly appreciated.


I would rather use DriverFactory.getExecutedBrowser() for a test case to know which type of browser is currently used.

Nope! Can’t be it. That would be too easy.
Just kidding :smiley: - works like a charm. I was hoping that code suggest would list it - maybe I have some faulty eclipse configuration.

Thanks a million!