def find_xpath_name(self,name): elem = self.driver.find_element_by_xpath("//*[@text='%s']" % name) return elem