-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselenium.module
More file actions
29 lines (26 loc) · 837 Bytes
/
selenium.module
File metadata and controls
29 lines (26 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Implements hook_init().
*/
function selenium_init() {
module_load_include('inc', '/classes/selenium_core.class', 'selenium');
module_load_include('inc', '/classes/drupal_selenium_web_test_case.class', 'selenium');
}
/**
* Implementation of hook_form_alter().
*/
function selenium_form_simpletest_settings_form_alter(&$form, &$form_state) {
$form['selenium'] = array(
'#type' => 'fieldset',
'#title' => t('Selenium settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#tree' => FALSE,
);
$form['selenium']['selenium_server_host'] = array(
'#type' => 'textfield',
'#title' => t('Selenium server host and port'),
'#description' => t('Format is HOST:PORT (example: localhost:4444).'),
'#default_value' => variable_get('selenium_server_host', 'localhost:4444'),
);
}