Selenium support for label locators

Also fixes labels feature.

Once again, sorry for splitting this into several PRs and broken features, it's almost 2 am here so I'm a bit messed.