[Bug 881476] Add selenium testcase and a test.