How to get a header and print all header only from HTML | Selenium Forum
M
Posted on 11/02/2016
Hi everyone, I tried to get headers (h3) from a webpage. I used the following code:

List<WebElement> headersList = driver.findElements(By.xpath("//*[@class='content-layout-col1-link_list_copy-header']/h3"));

For this code, I am not getting any results as there are headers in that panel. I am able to get links from same panel.
Is this correct? Correct me if I am wrong.

Thanks
Sam

M
Replied on 11/02/2016

Please provide the website URL