src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js
function (classNameSelector) {
					if (typeof classNameSelector === "string") {
						return elements.filter(function (element) {
							return element.getMetadata().getName() === classNameSelector;
						});
					}

					if (typeof classNameSelector === "function") {
						return elements.filter(function (element) {
							return element instanceof classNameSelector;
						});
					}
				}
function (classNameSelector) {
					if (typeof classNameSelector === "string") {
						return elements.filter(function (element) {
							return element.getMetadata().getName() === classNameSelector;
						});
					}

					if (typeof classNameSelector === "function") {
						return elements.filter(function (element) {
							return element instanceof classNameSelector;
						});
					}
				}
function ( classNameSelector ) { if ( typeof classNameSelector === "string" ) { return elements . filter ( function ( element ) { return element . getMetadata ( ) . getName ( ) === classNameSelector ; } ) ; } if ( typeof classNameSelector === "function" ) { return elements . filter ( function ( element ) { return element instanceof classNameSelector ; } ) ; } }
Gets elements by their type
@public
@function
@param {string|function} classNameSelector Either string or function
to be used when selecting a subset of elements
@returns {Array} Array of matched elements
@alias sap.ui.support.ExecutionScope.getElementsByClassName
Gets elements by their type