SUT has html element button with multiple span elements inside it for visualization. I have a testcase that clicks on ID of the initial button (id is unique). This test case is executed 3 times (for all different language variansts) but sometimes the click doesn’t actually trigger the onclick handler of the button. I have a video of the failure and it looks that click is actually being triggered but button only receives focus. There are no overlays, only those span elements that are inside “button”. if the click would go any of the span’s, event bubbling should still trigger onClick ?
I don’t know really about sub-span click, but would expect indeed that it triggers.
Didn’t had this on buttons, but on click on table’s line //tr.
From exe to exe, I had clicks at a x position sometimes that didn’t gave expected results, so went for a fixed position and column.
Did you try a Click With Options to fixed coordinates see if behavior improves?
Did you try a Click With Options to fixed coordinates see if behavior improves?
Nope, didnt try that. This thing was happening in a keyword that selects item in fake unordered list and verifies that selection something like this:
Click ${plan_name}
Plan State Should Be ${plan_name} checked ${ignore_ss}
And “fixed” this issue with try/except that sends enter (and essentially selecting the focused item)
Click ${plan_name}
TRY
Plan State Should Be ${plan_name} checked ${ignore_ss}
EXCEPT
Keyboard Key press Enter
Plan State Should Be ${plan_name} checked ${ignore_ss}
END
This just feels a bit funky cuz bubbling still should handle this .. maybe.