3

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?

1

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();
  parent::setUp($modules);
  //...
}

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

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.