-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The blue button #3
Comments
Oh and one extra gotcha was that, with webdriver/selenium firefox driver, it starts inside my Next step: xvfb and true headless to work... >< |
Hi @robjens, thanks for the hint. Good to know that it works with selenium. Feel free to send a pull request in case you port your code to JS ;) |
I'll take a look sometime soon ^^ edit: it should be along these lines, no means or time to setup an environment and actually test it :P driver.wait(function() {
driver.findElement(By.id('submit_approve_access')).isEnabled().then(function(element) {
element.click();
});
}, 15000); |
I am using
clj-webdriver
for my consent window. Using that, I can doThe 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)
The text was updated successfully, but these errors were encountered: