Q:

Is there a way to get the current browser name using selenium web-driver (nodejs)?

I tried doing driver.getBroswerName(), but it didnt recognize the function getBrowerName()?. I guess there is not that function. So is there any other way to get the current browser name?

A:

Try this.
driver.getCapabilities().then(function (caps) {
    console.log(caps.get("browserName"));
});

