I'm having trouble getting to the element using the 'style' attribute with selenium. The problem is that using xpath selectors I am able to do it:
int(self.selenium.get_element_index("//div[contains(@class,'%s')][contains(@style,'%s')][contains(@style,'%s')]"%(pin_class_name,map_object_position[0],map_object_position[1])))
^ This returns result
But when I try to get to the element using css selectors, it appears that such an element not found:
int(self.selenium.get_element_index("css=div[class*='%s'][style*='%s'][style*='%s']"%(pin_class_name,map_object_position[0],map_object_position[1])))
Has anyone met with this problem or knows if it is possible to navigate using the attribute 'style' using css selectors. I describe this problem, because I want to make a comparison with the use of both methods (I suspect that the use of xpath doesn't as it should)