Closed kensgists closed 6 years ago
You are right. The timeout option lets you change how long webdriver will wait before deciding the page isn't going to load. But there is no option that lets you delay after loading. Axe-cli attempts to determine when the browser is done, which is does fairly well, but if things get pulled in after the load, there's no consistent way to determine that. We could possibly add a -load-delay
option to do something like that?
Yes, a --load-delay
option would be helpful for such cases. Thanks.
Hi @WilcoFiers, Is --load-delay option incorporated in axe-cli?
This isn't currently being worked on. We'd welcome a pull request to add this feature.
Sorry @WilcoFiers , I forgot to add docs for it.. so I created a small (1-commit) PR for it 🙈 :
Yikes! Can't believe I missed that :/ Glad you spotted it.
Hi @WilcoFiers and @JayKid, has this landed in prod yet?
Also (perhaps another feature request) would there be a way to, in addition to an set delay, have axe-cli wait on the rendering of an element?
@kensgists We released axe-cli 3.0 yesterday :)
It looks like --timeout allows the user to set an automatic timeout for long pages, but is it possible to set a "wait" so that a page can complete loading of all resources before axe runs?