Selenium tests: fix boolean script results
Fix Selenium test
Selenium: test setting control name

- also add more utility functions