Html – How to extract text from a span tag that also have an inner span
I have a html below: <span class="ui-cfs-sn-l" xpath="1"> ABC <span class="ui-cfs-txt">°⌃</span> </span> I used the following python code to extract the text which returns ABC°⌃ element = driver.find_element(by=By.XPATH, value="//span[@class='ui-cfs-sn-l']") result = element.text Is there a way to extract just the…