Toggle navigation
Home
(current)
Selenium Training
Course Details
Free Videos
Support Forum
QTP UFT Training
Course Details
Free Videos
Support Forum
Appium Training
Course Details
Free Videos
Support Forum
Contact Us
(current)
All Courses
(current)
Login
(current)
Avail Discount
Name
Email
Phone Number
Tools
Selenium
QTP/UFT
Appium
Enroll Now
Home
Forum
Selenium Forum
How to get a header and print all header only from HTML
How to get a header and print all header only from HTML
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