- Go to: https://www.goodrx.com/amoxicillin
- Right click on $7.56 (or any price) -> copy xpath in the chrome dev tools
I've tried all these variations:
find_element(By.XPATH, '// *[ @ id = "uat-price-row-coupon-1"] / div[3] / div[1] / text()')
find_element(By.XPATH, "//*[@id='uat-price-row-coupon-0']/div[3]/div[1]/text()")
find_element_by_xpath("//*[@id='uat-price-row-coupon-1']/div[3]/div[1]/text()")
I also verified it works in "Try Xpath" in Firefox
But I get "no such element" from selenium with all of them.
Am I missing something?