In Selenium, I can locate an item and its HTML this way:
driver.get('http://www.google.com/ncr');
driver.findElement(webdriver.By.id('hplogo')).getAttribute('outerHTML').then(
function(html) {
console.log(html);
});
Is it possible for me to retrieve the file type of the HTML I am getting? For example, if the HTML is logged as follows:
<video src="http://www.myvideo.com/video.webm"></video>
I would get the following output:
webm