The solution was found and it turned out to be quite trivial, although not obvious. Apparently Testcafe Salesforce and css selectors are not the best combination, but a simple switch to XPath instantly solved all the problems. Elements are found without any difficulties and autotests work perfectly