diff --git a/src/main/java/com/codeborne/selenide/WebDriverRunner.java b/src/main/java/com/codeborne/selenide/WebDriverRunner.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/codeborne/selenide/WebDriverRunner.java
+++ b/src/main/java/com/codeborne/selenide/WebDriverRunner.java
@@ -98,6 +98,10 @@ public class WebDriverRunner {
     return webdriver != null && webdriver instanceof InternetExplorerDriver;
   }
 
+  public static boolean htmlUnit() {
+    return webdriver != null && webdriver instanceof HtmlUnitDriver;
+  }
+
   public static void clearBrowserCache() {
     if (webdriver != null) {
       webdriver.manage().deleteAllCookies();
Added method htmlUnit()