​PageObject: YouTube video

​This PageObject renders an <iframe> which embeds an YouTube video player. By default the full screen option is activated (and cannot be deactivated).

The PageObject will render a minimal HTML setup, the visual appearance is controlled by the template's CSS. In other words: You need to declare proper CSS styles for this PageObject, otherwise it won't look good or be even usable.

HTML example (system generated)

<div class="fx_po_youtube">
    <iframe src="https://www.youtube.com/embed/YOUTUBE-VIDEO-ID" allowfullscreen></iframe>

​CSS example (boilerplate)

div.fx_po_youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
div.fx_po_youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
​This PageObject renders as block element.