I was getting the element in a HTML i.e value "1841". I can find the element for the next element by:
e = b.find_element_by_xpath("//*[contains(text(), 'value_to_alert')]")
How to get the element before this element... I don’t want to use the class name because there are a bunch of "KpiValue"s. Is there a way to do that?
