Selenium: test setting control name

- also add more utility functions