I am using the Selenium module for Drupal, which is integrated with SimpleTest.

One thing I have not been able to do is to enable modules for the test cases. I am able to enable them on SimpleTest tests (using setUp()).

How do I enable modules in the Selenium Tests?


It should work completely the same. You should be able to enable modules passing arguments to setUp().

Implementation of the setUp() method for DrupalSeleniumWebTestCase is

protected function setUp() {
  $modules = func_get_args();

So everything passed to it is passed to parent setUp method that should enable modules for you.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.