Thanks, @edward.davies , I wasn’t aware of this problem.
@duyluong @nam.nguyen @vu.tran
If my understanding is correct, verifyImagePresent() is a (yet another) poorly named API.
-
In all other cases, “verifying presence” is about checking for an element’s presence in the DOM – nothing at all to do with the content of the element. Yet…
-
The documentation for
WebUI.verifyImagePresent()requires the tester to provide a source image for comparison purposes, which has nothing at all to do with an element’s presence in the DOM.
Due to backwards compatibility and legacy code concerns, this can’t easily be fixed. What should happen is, two new APIs should be introduced, one specifically about presence in the DOM, and another that actually compares two images properly (since the current implementation is clearly broken). The existing API should be deprecated, since it’s both broken and doing the wrong thing.
@edward.davies sit tight. Let’s see what the devs say.