Selenium for SimpleTest (Drupal 7)
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
For those who encounter a problem when integraiting Selenium WebDriver into SimpleTest (Drupal 7) we provide our solution. It based on original SimpleTest module (Drupal7) and a work of Yuri Gerasimov (http://drupal.org/sandbox/ygerasimov/1131210).
In the begining we occured with a problem. Browser worked with original table but SimpleTest called prefixed database table. So SimpleTest make changes in one place and Browser looks for them in another one. This occurs when browser can not get profile in time.
То solve this problem we patched bootstrap.inc file in /include to change allowed time window for HMAC key generation:
- if($time_diff >= 0 && $time_dif f<= 5 && $hmac == drupal_hmac_base64($check_string, $key))
+ if($time_diff >= 0 && $time_diff <= 60 && $hmac == drupal_hmac_base64($check_string, $key))Also we patched method drupalPost() adding some return values such as nid, timestamp, title and body to make them check more easely.
This module is designed for functional testing and it works under Drupal 7.12.
We are ready to provide full maintenance for Yuri Gerasimov module if necessary.
sponsored by adyax.com
