I have an element:
<span class="a-color-price hlb-price a-inline-block a-text-bold">$399.98</span>
and I want to extract the price value in dollars which appears in the element’s text.
I have tried:
driver.get_element_by_xpath('//*[@id="nav-search"]/form/div[2]/div/input').get_attribute("value")