 (ns etaoin.api
   "
   The API below was written regarding to the source code
-  of different Webdriver implementations.
-
-  Sometimes, a feature you found out in W3C official standard
-  really differs from the corresponding implementation in Chrome or Firefox, etc.
+  of different Webdriver implementations. All of them partially differ
+  from the official W3C specification.
 
   Chrome:
   https://github.com/bayandin/chromedriver/blob/master/client/command_executor.py

    resp
    (-> resp :value :ELEMENT)))

(defn query [driver q]
  (cond
    (= q :active)
    (get-active-element* driver)

    [:session (:session @driver) :url]
    {:url url} _))

(defn back
  "Move backwards in a browser's history."
  [driver]
  (with-resp driver :post
    [:session (:session @driver) :back]
    nil _))

(defn refresh
  "Reload the current window."
  [driver]
  (with-resp driver :post
    [:session (:session @driver) :refresh]
    nil _))

(defn forward
  "Move forwards in a browser's history."
  [driver]
  (with-resp driver :post
    [:session (:session @driver) :forward]
    nil _))
