// This is an example of helper method that uses map
clickByLabel(label){
// Create object named hash
let hash = {};
// Loop through yourSelectors and fill up object with keys(text of each label with h1 tag), and values: "div a" selector so we could perform action on it
$$('.fakeClasses').map(elem => hash[elem.$('h1').getText()] = elem.$('div a'));
// Same as line above but: this.yourSelectors.map(elem => hash[elem.getText()] = elem);
// Performing actual action on it. Note, one of your labels that we got text of must match with parameter that yo will pass in(label)
hash[label].click();
}