Make openQuickViewScrollText robust

The QuickView text <webview> provides no signal that it is loaded, but
it does have a src attribute. That can used as a proxy for loaded, and
help make a test that is robust (to load / script timing) on the bots.

 - make the text <webview> selector precise (.text-content class)
 - change the text scroll test to check the webview src attribute
   is non-empty before proceeding.
 - change to use scrollBy, and send incremental scrolls until the
   the scroll limit is reached [1].

[1] if the bot misses or drops a JS scrollBy request, no problem: just
ask for it again.

Bug: 891150
Change-Id: I0bb49c2b08b3535172819a3c1088fca5ba6fda94
Reviewed-on: https://chromium-review.googlesource.com/1256469
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595747}
1 file changed