diff --git a/tests/autocomplete.test b/tests/autocomplete.test
index 5be90f8..6c0b926 100644
--- a/tests/autocomplete.test
+++ b/tests/autocomplete.test
@@ -6,6 +6,11 @@
  * Test case for Drupal core misc/autocomplete.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class AutocompleteTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/collapse.test b/tests/collapse.test
index e604f32..50b5fb9 100644
--- a/tests/collapse.test
+++ b/tests/collapse.test
@@ -7,6 +7,11 @@
  * Test case for Drupal core misc/collapse.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class CollapseTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/machine_name.test b/tests/machine_name.test
index 4b209f9..1fcebac 100644
--- a/tests/machine_name.test
+++ b/tests/machine_name.test
@@ -7,6 +7,11 @@
  * Test case for Drupal core misc/machine-name.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class MachineNameTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/states.test b/tests/states.test
index e74d7a7..8af74a6 100644
--- a/tests/states.test
+++ b/tests/states.test
@@ -6,6 +6,11 @@
  * Test case for Drupal core misc/states.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class StatesTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/tabledrag.test b/tests/tabledrag.test
index 343cf7f..65f58e0 100644
--- a/tests/tabledrag.test
+++ b/tests/tabledrag.test
@@ -7,6 +7,11 @@
  * Test case for Drupal core misc/tabledrag.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class TabledragTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/tableheader.test b/tests/tableheader.test
index 8bb8200..f8475f3 100644
--- a/tests/tableheader.test
+++ b/tests/tableheader.test
@@ -7,6 +7,11 @@
  * Test case for Drupal core misc/tableheader.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class TableheaderTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/tableselect.test b/tests/tableselect.test
index 71bbaca..17137e9 100644
--- a/tests/tableselect.test
+++ b/tests/tableselect.test
@@ -6,6 +6,11 @@
  * Test case for Drupal core misc/tableselect.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class TableselectTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/textarea.test b/tests/textarea.test
index f26041e..54ab891 100644
--- a/tests/textarea.test
+++ b/tests/textarea.test
@@ -6,6 +6,11 @@
  * Test case for Drupal core misc/textarea.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class TextareaTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/upload.test b/tests/upload.test
index 4d36f8f..1711a19 100644
--- a/tests/upload.test
+++ b/tests/upload.test
@@ -6,6 +6,11 @@
  * Test case for filefield ajax upload functionality in Firefox.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class FilefieldTestExample extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
diff --git a/tests/vertical_tabs.test b/tests/vertical_tabs.test
index 70762e8..1caa558 100644
--- a/tests/vertical_tabs.test
+++ b/tests/vertical_tabs.test
@@ -6,6 +6,11 @@
  * Test case for Drupal core misc/vertical-tabs.js javascript.
  */
 
+if (!class_exists('DrupalSeleniumWebTestCase')) {
+  drupal_set_message(t('Selenium tests are not displayed because the selenium module is not enabled.'), 'warning', FALSE);
+  return;
+}
+
 class VerticalTabsTestCase extends DrupalSeleniumWebTestCase {
 
   public static function getInfo() {
