Bug 931719 - [HW test] unlock button in orientation test test doesn't work

Modified codes to switch-case so that js would not complain for missing buttons