pythonseleniuminternet-explorerwebdriverwaitselenium-iedriver

Unable to extract page tittle and page_source using IEDriverServer and Selenium through Python


i have just started selenium coding. i have python 3.6.6, executing following code on jupyter notebook (with chrome broser)

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Ie("C:\\Python 36\\IEDriverServer.exe")
driver.get('https://google.com')

print(driver.title)
print(driver.page_source)
driver.close()

this is giving following output:

WebDriver WebDriverThis is the initial start page for the WebDriver server.

In this process an IE browser gets open and goes to google.com (any desired site) but not getting closed


Solution

  • To extract the Page Titile and the Page Source you need to: