<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/frames</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 19:20:23 GMT</pubDate>
<item>
<title>(CSS) Image Frame on Round Photo - COBOLdinosaur</title>
<link>http://snipplr.com/view/69587/image-frame-on-round-photo/</link>
<description><![CDATA[ <p>Using an image background for a photo allows all kinds of framing possibilities</p> ]]></description>
<pubDate>Wed, 23 Jan 2013 05:27:04 GMT</pubDate>
<guid>http://snipplr.com/view/69587/image-frame-on-round-photo/</guid>
</item>
<item>
<title>(HTML) Frames - icecreamboyy</title>
<link>http://snipplr.com/view/47260/frames/</link>
<description><![CDATA[ <p>fgdf</p> ]]></description>
<pubDate>Mon, 17 Jan 2011 05:50:09 GMT</pubDate>
<guid>http://snipplr.com/view/47260/frames/</guid>
</item>
<item>
<title>(JavaScript) How to detect frames? - MoogPHP</title>
<link>http://snipplr.com/view/20429/how-to-detect-frames/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 29 Sep 2009 13:55:13 GMT</pubDate>
<guid>http://snipplr.com/view/20429/how-to-detect-frames/</guid>
</item>
<item>
<title>(Ruby) How to call JavaScript in the Application Under Test, from Selenium - noah</title>
<link>http://snipplr.com/view/19872/how-to-call-javascript-in-the-application-under-test-from-selenium/</link>
<description><![CDATA[ <p>When writing functional tests with Selenium, it is often convenient to call JavaScript functions and methods, that are part of the Web application you are testing.  After all, Selenium is a functional testing framework for Web UI and most of the exciting bits of Web UI are JS (sorry, all you CSS hackers, but them's the facts). 

The problem is that it's not immediately obvious how you can access the DOM of the Application Under Test (AUT).  Selenium Core (in which all Selenium tests execute) is a frame set, and if you simply try to call your JavaScript with `getEval`, you'll get an error because `getEval` references Selenium Core's DOM, not the DOM of the AUT.

Fortunately the answer is simple.  Use `this.browserbot.getCurrentWindow()` to get a reference to the `window` object in *your* DOM.  Then you can execute any of the JS that lives in your page, right from Selenium!

This example uses the Ruby driver, but the principle is the same regardless of which language you use.</p> ]]></description>
<pubDate>Thu, 17 Sep 2009 13:14:43 GMT</pubDate>
<guid>http://snipplr.com/view/19872/how-to-call-javascript-in-the-application-under-test-from-selenium/</guid>
</item>
<item>
<title>(Other) JS "JAH" Script by Kevin Marks - matski</title>
<link>http://snipplr.com/view/13502/js-jah-script-by-kevin-marks/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 27 Mar 2009 04:49:25 GMT</pubDate>
<guid>http://snipplr.com/view/13502/js-jah-script-by-kevin-marks/</guid>
</item>
<item>
<title>(JavaScript) Break Out of Frames - neogeek</title>
<link>http://snipplr.com/view/170/break-out-of-frames/</link>
<description><![CDATA[ <p>Place this script on any page of your site that you want to ensure doesn't end up in someone else's frame.</p> ]]></description>
<pubDate>Sat, 01 Jul 2006 09:48:14 GMT</pubDate>
<guid>http://snipplr.com/view/170/break-out-of-frames/</guid>
</item>
</channel>
</rss>