Why doesn’t Selenium WebDriver print the title when switching to a window and attempting to print the title?
Hi Mark,
The title of the page is not stored in a value attribute of the title element; it’s found within the text contents of that element. To retrieve this text correctly, you can use either browser.find_element_by_tag_name("title").text
or simply browser.title
.