(-query q)
Like query
, but returns a locator instead of a SeqableLocator
.
You can use it when you want to interact directly with a Playwright locator,
check https://playwright.dev/java/docs/api/class-locator.
Like `query`, but returns a locator instead of a `SeqableLocator`. You can use it when you want to interact directly with a Playwright locator, check https://playwright.dev/java/docs/api/class-locator.
(all-text-contents q)
Find all text contents for a query. It returns a vector as a query may contain multiple matches.
Find all text contents for a query. It returns a vector as a query may contain multiple matches.
(click q)
(count* locator)
(defcommand name doc-string? [params*] body)
Like defn
, but adds some extra properties to the function relevant
to Wally commands.
Like `defn`, but adds some extra properties to the function relevant to Wally commands.
(download-file q)
(fill q value)
(fill-many coll)
(find-one-by-text q text)
(get-page)
(go-back)
(in-viewport? q)
Check that element is in viewport.
See https://playwright.dev/java/docs/api/class-locatorassertions#locator-assertions-to-be-in-viewport.
Check that element is in viewport. See https://playwright.dev/java/docs/api/class-locatorassertions#locator-assertions-to-be-in-viewport.
(keyboard-press key)
Press keyboard. See https://playwright.dev/docs/api/class-keyboard. E.g. `(keyboard-press "Enter")`
(-locator _)
(make-page)
(make-page {:keys [headless] :or {headless false}})
(navigate url)
(parse-json-string s)
(query q)
(query->selector q)
(refresh)
(select q option)
Possible values for options are
Possible values for options are - string - {:index n} - {:label "..."}
(text-content q)
Find one text content for a query. It's like all-text-contents
, but
it returns only one match and throws an exceptions if there is more than
one element matching.
It returns nil
if no match is found.
Find one text content for a query. It's like `all-text-contents`, but it returns only one match and throws an exceptions if there is more than one element matching. It returns `nil` if no match is found.
(upload-file q file-path)
(url)
(visible? q)
(wait q)
(wait-for q)
(wait-for q {:keys [state timeout]})
state
may be :hidden, :visible, :attached or :detached, defaults to :visible
.
timeout
is in milliseconds, defaults to the page timeout.
See https://playwright.dev/java/docs/api/class-page#page-wait-for-selector for more context.
`state` may be :hidden, :visible, :attached or :detached, defaults to `:visible`. `timeout` is in milliseconds, defaults to the page timeout. See https://playwright.dev/java/docs/api/class-page#page-wait-for-selector for more context.
(with-opts opts & body)
(with-page page & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close