Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 4b9b918

Browse files
JohnChen0andreastt
authored andcommitted
webdriver: fix test_spin_event_loop (#19585)
Fixing an element_click test by scheduling the delayed function to execute right away.
1 parent 858fa42 commit 4b9b918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdriver/tests/element_click/bubbling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_spin_event_loop(session):
7272
for (var level = 0; level < elements.length; level++) {
7373
elements[level].addEventListener("click", function(clickEvent) {
7474
var target = clickEvent.currentTarget;
75-
setTimeout(function() { window.delayedClicks.push(target); }, 100);
75+
setTimeout(function() { window.delayedClicks.push(target); }, 0);
7676
});
7777
}
7878
</script>

0 commit comments

Comments
 (0)