Can I get meta-description of a webpage using selenium webdriver with python?

0 votes
Can I get meta-description of a webpage using selenium webdriver with python?
Jul 30 in Selenium by Arpit
145 views

1 answer to this question.

0 votes

Hi Arpit, you can use this code snippet to get meta-description of a webpage:

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://www.edureka.co/")
print(driver.find_element_by_xpath("//meta[@name='description']")).getAttribute("content"))
answered Jul 31 by Anvi
• 13,960 points

Related Questions In Selenium

0 votes
1 answer

How can I get meta-description of a webpage using Selenium Webdriver?

Hey Sonal, to get the meta-description of ...READ MORE

answered Jul 23 in Selenium by Abha
• 27,180 points
265 views
0 votes
1 answer

Get coordinates or dimensions of element with Python using Selenium WebDriver

WebElements have the properties such as .size and .location. ...READ MORE

answered Jul 11, 2018 in Selenium by Meci Matt
• 9,440 points
2,408 views
0 votes
1 answer
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8 in Selenium by Anvi
• 13,960 points
273 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
1,147 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,150 points
1,246 views
0 votes
1 answer
0 votes
1 answer