Am trying to click a div with t.click(someDivSelector).click(someOtherSelector), but the first click doesn't seem to be executed.properly. Testcafe starts wiating for the second selector to return something, but that never happens
When I open the console in Chrome while testcafe is waiting for the second selector to return something and I do this in the browser console, it all of a sudden does start working:
document.querySelector('[data-element-name=nameOfMydiv]').click()
The click on someDivSelector does an Ajax call after which extra markup is loaded in the UI, which contains something matching someOtherSelector. When testcafe does it's first click, the dynamically loaded content doesn't appear in the UI. When I click that first element with the code above through the Developer Console, the dynamic UI does appear.
So I wonder if testcafe supports clikcing divs and triggering their onclick envent handler.
I'm on Chrome, Windows 10 and TestCafe 0.11.1