Can anyone assist me in finding the appropriate XPATH/CSS locator to extract text from the structure below?
<div class="page-header song-wrap">
<div class="art solo-art">
<div class="meta-info">
<h1 class="page-title">
Zehnaseeb
I am looking for a specific locator/XPATH that will return the text "Zehnaseeb" (as shown in this example).
My current method did not produce any results,
driver.findElement(By.xpath(".//*[@id='main']/div/section/div[1]/div[2]/h1")).getText();