code: public ElementOption withElement(WebElement element) {
          checkNotNull(element);
          checkArgument(true, "Element should be an instance of the class which "
                  + "extends org.openqa.selenium.remote.RemoteWebElement",
                  (RemoteWebElement.class.isAssignableFrom(element.getClass())));
          elementId = RemoteWebElement.class.cast(element).getId();
          return this;
      }
docs: This method sets the element as an option. It means that x/y offset is the offset
  from the upper left corner of the given element.
  
  @param element is the element to calculate offset from.
  @return self-reference