UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

1 lines 3.26 kB
Ext.data.JsonP.Siesta_Test_Browser_Role_CanGetElementFromPoint({"tagname":"class","name":"Siesta.Test.Browser.Role.CanGetElementFromPoint","autodetected":{},"files":[{"filename":"CanGetElementFromPoint.js","href":"CanGetElementFromPoint.html#Siesta-Test-Browser-Role-CanGetElementFromPoint"}],"members":[{"name":"elementFromPoint","tagname":"method","owner":"Siesta.Test.Browser.Role.CanGetElementFromPoint","id":"method-elementFromPoint","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-Siesta.Test.Browser.Role.CanGetElementFromPoint","component":false,"superclasses":[],"subclasses":[],"mixedInto":["Siesta.Test.Browser"],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Mixed into</h4><div class='dependency'><a href='#!/api/Siesta.Test.Browser' rel='Siesta.Test.Browser' class='docClass'>Siesta.Test.Browser</a></div><h4>Files</h4><div class='dependency'><a href='source/CanGetElementFromPoint.html#Siesta-Test-Browser-Role-CanGetElementFromPoint' target='_blank'>CanGetElementFromPoint.js</a></div></pre><div class='doc-contents'>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-elementFromPoint' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.Browser.Role.CanGetElementFromPoint'>Siesta.Test.Browser.Role.CanGetElementFromPoint</span><br/><a href='source/CanGetElementFromPoint.html#Siesta-Test-Browser-Role-CanGetElementFromPoint-method-elementFromPoint' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.Browser.Role.CanGetElementFromPoint-method-elementFromPoint' class='name expandable'>elementFromPoint</a>( <span class='pre'>x, y, [shallow]</span> ) : HTMLElement<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will return the top-most DOM element at the specified coordinates from the test page. ...</div><div class='long'><p>This method will return the top-most DOM element at the specified coordinates from the test page. If\nthe resulting element is an iframe and <code>shallow</code> argument is not passed as <code>true</code>\nit'll query the iframe for its element from the local point inside it.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>x</span> : Number<div class='sub-desc'><p>The X coordinate, relative to the viewport area (currently visible part of the page)</p>\n</div></li><li><span class='pre'>y</span> : Number<div class='sub-desc'><p>The Y coordinate, relative to the viewport area (currently visible part of the page)</p>\n</div></li><li><span class='pre'>shallow</span> : Boolean (optional)<div class='sub-desc'><p>Pass <code>true</code> to <em>not</em> check nested iframes if an element at the original coordinates is an iframe.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement</span><div class='sub-desc'><p>The top-most element at the specified position on the test page</p>\n</div></li></ul></div></div></div></div></div></div></div>","meta":{}});