"" getSize() , width, height, hcode and class . , , . -
it('searchForm must have width: 400px and height: 400px', function(){
var searchForm = element(by.id('search'));
searchForm.getSize().then(function(eleSize){
console.log('element size: '+eleSize);
expect(eleSize.width).toEqual(400);
expect(eleSize.height).toEqual(400);
});
});
- spec it . , .