Source:
<code>public void verifyVideoAutoplay(boolean status) { String providerName = provider.getText().toLowerCase(); PageObjectLogging.log("verifyVideoAutoplay", "Provider: "+providerName, true); String autoplayStr = ""; String embedCode = ""; switch (providerName) { case "screenplay": autoplayStr = "autostart=" + status; embedCode = playerObject.findElement(By.cssSelector("[name=flashvars]")).getAttribute("value"); break; case "ign": autoplayStr = "&autoplay=" + status; embedCode = playerIframe.getAttribute("src"); break; case "realgravity": autoplayStr = "/ac330d90-cb46-012e-f91c-12313d18e962/"; embedCode = playerObject.findElement(By.cssSelector("[name=flashvars]")).getAttribute("value"); break; case "anyclip": autoplayStr = "&autoPlay=" + status; embedCode = playerObject.findElement(By.cssSelector("[name=flashvars]")).getAttribute("value"); break; case "youtube": autoplayStr = "&autoplay=" + ((status) ? 1 : 0); embedCode = playerIframe.getAttribute("src"); break; case "vimeo": autoplayStr = "?autoplay=" + ((status) ? 1 : 0); embedCode = playerIframe.getAttribute("src"); break; case "gamestar": case "hulu": case "dailymotion": case "myvideo": case "snappytv": case "ustream": case "fivemin": case "metacafe": case "movieclips": case "sevenload": case "gametrailers": case "viddler": case "bliptv": case "twitchtv": case "youku": break; default: autoplayStr = "&autoplay=" + ((status) ? 1 : 0); embedCode = playerObject.findElement(By.cssSelector("[name=flashvars]")).getAttribute("value"); break; } PageObjectLogging.log("verifyVideoAutoplay", "autoplay: " + autoplayStr, true); <START> PageObjectLogging.log("verifyVideoAutoplay", "embedCode: " + embedCode, true); <END> Assertion.assertStringContains(embedCode, autoplayStr); }</code><technical_language>log() method provide information</technical_language>

Target:
public void verifyVideoAutoplay(boolean status) { String providerName = provider.getText().toLowerCase(); PageObjectLogging.log("verifyVideoAutoplay", "Provider: "+providerName, true); String autoplayStr = ""; String embedCode = ""; switch (providerName) { case "screenplay": autoplayStr = "autostart=" + status; embedCode = playerObject.getAttribute("value"); break; case "ign": autoplayStr = "&autoplay=" + status; embedCode = playerIframe.getAttribute("src"); break; case "realgravity": autoplayStr = "/ac330d90-cb46-012e-f91c-12313d18e962/"; embedCode = playerObject.getAttribute("value"); break; case "anyclip": autoplayStr = "&autoPlay=" + status; embedCode = playerObject.getAttribute("value"); break; case "youtube": autoplayStr = "&autoplay=" + ((status) ? 1 : 0); embedCode = playerIframe.getAttribute("src"); break; case "vimeo": autoplayStr = "?autoplay=" + ((status) ? 1 : 0); embedCode = playerIframe.getAttribute("src"); break; case "gamestar": case "hulu": case "dailymotion": case "myvideo": case "snappytv": case "ustream": case "fivemin": case "metacafe": case "movieclips": case "sevenload": case "gametrailers": case "viddler": case "bliptv": case "twitchtv": case "youku": break; default: autoplayStr = "&autoplay=" + ((status) ? 1 : 0); embedCode = playerObject.getAttribute("value"); break; } Assertion.assertStringContains(embedCode, autoplayStr); }