title: How to compare width and height of element with getSize() function with Protractor test?
body: <p>Good morning dear colleagues.
  I have a question about Selenium methods.
  In my case I'm testing angular application with protractor and I want to compare returns value from <code>getSize</code> function with set values in the my test. Here is code below -</p>
  
  <pre><code>var searchForm = element(by.id('search'));
  
   it('searchForm must have width: 400px and height: 400px', function(){
    //expect(browser.driver.manager().window().getSize()).toEqual(400, 400);
    searchForm.getSize();
    searchForm.width.toEqual(400);
    searchForm.height.toEqual(400);
  
  });
  </code></pre>
  
  <p>please help me to solve trouble. I hope you will help me.</p>