Im very new to Python/Coding so please bare with me.
However, I'm trying to extract the text from the title of a webpage (input by the user), by scraping the 'webelement' of the page and finding its value using Selenium.
However, it keeps just returning the value 'none', instead of what I would expect to see (in this case 'BLACK BELTED WRAP COAT'.
Code can be found below:
title = driver.find_elements(By.XPATH,('/html/body/div[4]/div/div[3]/div[4]/div[1]/div[1]/form/div/div[2]/a/h2'))
//rest of code hidden but if you need more, please do let me know. (I'm new and don't want to spam)
Any idea what's causing this?
The source URL I'm entering is: https://www.riverisland.com/p/black-belted-wrap-coat-782866
This runs without error, but returns an unexpected value (as seen in below images).
enter image description here enter image description here
Appreciate it and apologies if I've missed anything. Ginge