forked from lyaunzbe/node-gAuth
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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
Labels
No labels