code: public static RemoteWebElement locateElement(String locator) {
          logger.entering(locator);
          Preconditions.checkArgument(StringUtils.isNotBlank(locator), INVALID_LOCATOR_ERR_MSG);
          By locatorBy = resolveByType(locator);
          RemoteWebElement element = (RemoteWebElement) Grid.driver().findElement(locatorBy);
          logger.exiting(element);
          return element;
      }
docs: Parses locator string to identify the proper By subclass before calling Selenium
  {@link WebElement#findElement(By)} to locate the web element.
  
  @param locator
  A String that represents the means to locate this element (could be id/name/xpath/css locator).
  @return {@link RemoteWebElement} that represents the html element that was located using the locator provided.