1. A computer-executed method for automatically generating addressing queries for objects rendered on a graphical user interface (GUI), wherein the method comprises: receiving a request to generate an object-addressing query for a target GUI object in an application under test; identifying an application context for the application under test; retrieving a rule document describing GUI object-addressing query rules based at least on the identified application context; parsing the rule document to obtain an applicable query rule set for the application, wherein parsing the rule document comprises: retrieving a rule-identification query defined in the rule entry of a respective rule, executing the rule-identification query against the target GUI object in the context of a markup language document in which the object is represented as a node, verifying whether the query result is true, and adding the rule to the applicable rule set when the query result is true; generating a set of query candidates for the target GUI object based at least on the applicable rule set; and determining a unique object-addressing query for the target GUI object.
4. The method of claim 1 , wherein generating query candidates based on the applicable rule set comprises: retrieving defined templates from each rule in the applicable rule set; generating an object-addressing query for the target GUI object using a respective template; executing the object-addressing query to identify a result GUI object in the application under test; and adding the object-addressing query to the set of query candidates if the result GUI object matches the target GUI object.