So I've tried to select this element by both cssSelector and Xpath but no luck. It returns the error no such element. But this is the closest i've gotten to grabbing the element with the below code.
WebElement x = driver.findElement(By.cssSelector("meta[property='og\\:title']"));
or
WebElement x = driver.findElement(By.xpath("//meta[@property='og\\:title']"));
However, it still provides the error of invalid selector or no such element.
The Xpath I've tried is below. The element is below. If you want to the website it is also below.
/html/head/meta[14]
HTML:
<meta property="og:title" content=" Blydenburgh County Park Stump Pond Loop" class="xlate-none">
URL: www.alltrails.com/explore/trail/us/new-york/blydenburgh-county-park-stump-pond-loop