Select2 handling for Webtest

Fixes contain select2 handling for Webtest
please follow : https://github.com/civicrm/civicrm-core/pull/2662/ for discussion.