In a testcafe test how can I click on an element that is clearly clickable (with t.debug()
I'm able to click on the element) and visible without using ClientFunction
, or t.eval
-- these "workarounds" recommended in testcafe's github issues do not work.
Some additional considerations:
Selector
is verified as correct (and I tried various types of selectors)t.wait
times before and after selection and click<button>
to <div>
, etc)Try waiting for the element to be visible before clicking
await element.with({ visibilityCheck: true }).with({timeout: 10000});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With