I just learn how to create angular.js
directives.
I write simple directive for input with two-way binded selectionRange
control.
When scope variable changes - selection range inside the input changes too.
How this behavior can be tested with Protractor.js
?
I can not to find any method to get input current selectionRange
/cursor position
or even selected text.
You can found&playWith my directive here: Demo
Todo
with what I want to achive here: github
When you change $scope data with form below, input selection changes.
I want just cover this behavior with test, and don't know how to get current selectionRange
in the protractor environment.