1. A machine-implemented method for locating an element in a document object model (DOM) tree structure based on fuzzy matching of attributes of the element and relative positioning of other elements in the DOM tree structure, the method comprising: receiving a plurality of attributes for searching an element in a DOM tree structure; determining a location of the element in the DOM tree structure based on the plurality of attributes; and if determining location of the element based on the plurality of attributes is unsuccessful: searching the DOM tree structure based at least in part on one of: a prefix search query, a suffix search query, and a wildcard matching; and determining a relative location of the element in the DOM tree structure, wherein the determination of the relative location of the element is based on fuzzy matching according to a predetermined percentage of one or more matching attributes and based on respective positions of one or more elements in the DOM tree structure.