Smart click

Simulating real cursor clicks

BugBug simulates real clicks as if the user was moving a mouse. So if the element is not visible or covered by something else, it is not possible to click it.

BugBug will not fake-click the elements with JavaScript events.

Smart preventing incorrect clicks

BugBug prevents randomly failed tests by being smart about clicking elements.

1) BugBug will retry the click if the right element was suddenly covered

After clicking an element, BugBug will check if the right item was clicked. This prevents a situation when the click event was received by a different element, for example, you wanted to click a button but it was covered by a cookie popup overlay or scrolled outside of the viewport.

2) BugBug will click the element even if it's partially covered

Your test will not fail if the button is partially covered. BugBug will click the remaining visible button area.

Smart position detection

BugBug will first try to click the element in the center, but if this will not work, BugBug will automatically find different coordinates for clicking an element, that is not covered by anything else and is visible on the screen.

Last updated