Closed MolotovCherry closed 9 months ago
Ah, yes, you're entirely right. The history here is that https://github.com/jonhoo/fantoccini/pull/134 landed the .wait().on()
interface, and then in https://github.com/jonhoo/fantoccini/commit/8ac0f90d9fcca20aca6879b484eb0bdf120f78b1 I got rid of the general-purpose variant because it gave the illusion that we'd be handling these calls in some kind of efficient way. Totally agree with you that the deprecation notices are wrong. Will update shortly!
The
wait_for*
methods are deprecated, and offerclient.wait().on(...)
as a solution, but thison()
function does not exist, making it impossible to achieve a custom wait condition without using deprecated code(Of course, naturally, one could custom implement this, but it would be nice if it was part of the library again)
Edit: This message has come to my attention:
Could we update the deprecation notices on the functions? It gave me a false expectation/impression that this functionality was supposed to be here but is missing