text: module.exports = {
    $: async function (selector){
      let elements = await driver.findElements(by.css(selector));
      if(elements.length === 0){
        return null; 
      }
      if(elements.length === 1){
        return elements[0];
      }
      return elements;
    },
    sleep: function(ms) {
      return new Promise(resolve => setTimeout(resolve, ms));
    }
  }
   
  