Skip to content

The blue button #3

@robjens

Description

@robjens

I am using clj-webdriver for my consent window. Using that, I can do

      (wait-until #(not (empty? (find-elements {:xpath "//button[@id='submit_approve_access' and not(@disabled)]"}))) (* 15000))

The xpath expression allows to define a condition which the css selectors do not offer, that is to select upon state of the element. Using a 15 second window in which the web page and consent screen must have loaded and disabled the blue button by script.

Lookup the JavaScript solution, as this is Clojure, but the functionality comes straight from webdriver/selenium and it demonstrates the how anyway, this might give a little closure ;) (last paragraph of your readme is about this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions