Still facing this issue as UI is not recognizing the locator passed to variable 'element', but it works with firebug: 

`element = self.browser.find_element_by_xpath("//a[contains(@data-confirm, '{0}')]".format(osname))`