Test case details

Preparation Code

<div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div><div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div id="find-me"> <div class="find-me"/> <div class="find-me"/> <div class="find-me"/> </div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div> <div>Padding for a more fair reflection of selection work being done</div>

Test cases

Test #1

var found = document.getElementById("find-me");

Test #2

var found = document.getElementsByClassName(".find-me")[1];

Test #3

var found = document.querySelector("#find-me");

Test #4

var found = document.querySelector(".find-me")[1];

Test #5

var found = document.querySelector("div#find-me");

Test #6

var found = document.querySelector("div.find-me");

Test #7

var found = document.getElementsByTagName("div")[0];

Test #8

var found = document.querySelector("#find-me .find-me")[1];

Test #9

var found = document.getElementById("find-me").getElementsByClassName("find-me")[1];