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
45 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
• 12,860 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
• 23,030 points
82 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,420 points
1,748 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
• 12,860 points
143 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,090 points
577 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,130 points
898 views
0 votes
1 answer
0 votes
1 answer