Angularjs 用于指令绑定的量角器exactBinding

Angularjs 用于指令绑定的量角器exactBinding,angularjs,protractor,Angularjs,Protractor,使用量角器…我正在尝试获取sort property='name'的绑定。但是我遇到的问题是,exactBinding找不到它。我怎样才能到达exactBinding获取此绑定的位置 .directive('rxSortableColumn', function () { return { restrict: 'E', templateUrl: 'templates/rxSortableColumn.html', transclude: t

使用量角器…我正在尝试获取
sort property='name'
的绑定。但是我遇到的问题是,
exactBinding
找不到它。我怎样才能到达
exactBinding
获取此绑定的位置

.directive('rxSortableColumn', function () {
    return {
        restrict: 'E',
        templateUrl: 'templates/rxSortableColumn.html',
        transclude: true,
        scope: {
            sortMethod: '&',
            sortProperty: '@',
            predicate: '=',
            reverse: '='
        }
    };
})


<rx-sortable-column sort-property="name" predicate="sort.predicate" reverse="sort.reverse" class="ng-isolate-scope"></rx-sortable-column>

element.all(By.exactBinding('name'))
.directive('rxSortableColumn',函数(){
返回{
限制:'E',
templateUrl:'templates/rxSortableColumn.html',
是的,
范围:{
排序方法:“&”,
sortProperty:“@”,
谓词:'=',
反向:'='
}
};
})
元素.all(按.exactBinding('name'))

by.exactBinding
,以及
by.binding
,将只查看具有
ng binding
类()的元素

在您的情况下,通过.css获取元素

by.css("[sort-property=name]")

sortProperty
不是ng绑定吗?@dman您能展示一下页面上如何显示
rx可排序列
?谢谢。
@dman不,您不能在这里使用
by.binding
by.exactBinding