I'd like to get access in javascript to DOM elements generated by Vaadin bootstrap. Let's say page: https://vaadin.com
.
If you check the website content in Chrome > inspect element everything seems fine. We can navigate between html elements and everything is fine. But the content won't be displayed in Chrome > view page source.
Anyway, if we run a script like this in Tampermonkey:
// ==UserScript==
// @name TEST
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://vaadin.com/
// @requirehttp://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==
console.log($('.front-page-view'));
$(document).ready(function () {
console.log($('.front-page-view').html());
});
or even in "console" command (if page with above script is loaded) like:
$('.front-page-view').html();
every time we got
undefined
How do we get the userscript to see this code?