I am writing unit testcases for a UI Framework using Mocha, Chai and Karma. I have analysed before whether to use selenium webdriver to do testing, but since most of the test cases involve working with DOMElement I have found it difficult to be working with selenium though javascript version( WebDriverJS ) is available.
Even when I checked other UI Frameworks like jquery ui, kendo, semantic, foundation etc.. they have used javascript frameworks like jasmine, qunit etc.. for testing rather than selenium.
What could be the reason that UI Framework developers do not prefer Selenium?