     if u.isFunction(target)
       target = target(base)
     else if u.isElementish(target)
-      target = up.element.toSelector(target)
+      target = e.toSelector(target)
 
     if u.isString(target)
       target = { target }


  toTargetList: (target, props) ->
    list = u.wrapList(target)
    list = u.filter(list, u.isGiven)
    list = u.map list, (target) => @toTargetObj(target, props)
    return list



  postflightTargetNotApplicable: ->
    if @options.inspectResponse
      toastOpts = { action: { label: 'Open response', callback: @options.inspectResponse } }

    if @plans.length
      up.fail(["Could not find matching targets in current page and server response (tried selectors %o)", @planTargets()], toastOpts)
