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 7.5.10.1 this is no longer possible as driver.toString() gets me something like
com.kms.katalon.core.webui.driver.SmartWaitWebDriver@c7310b0
that doesn’t contain any (obvious/splittable) hint on what the currently used driver is.

How to fix this?
Any help is greatly appreciated.

Cheers,
Mat

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

https://docs.katalon.com/javadoc/com/kms/katalon/core/webui/driver/DriverFactory.html#getExecutedBrowser()

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!
Cheers,
Mat