code: public String cookiePath(String expectedCookieName) {
          Cookie cookie = cookie(expectedCookieName);
          if (cookie != null) {
              return cookie.getPath();
          }
          return null;
      }
docs: Retrieves the cookie path in the application with the provided
  cookieName. If the cookie doesn't exist, a null value will be returned.
  
  @param expectedCookieName - the name of the cookie
  @return String - the path of the cookie