browser.get('yoururl'); // To open the website

browser.sleep(10000); // To wait and see the page

Locators !!
element(by.id('paste-id-here'));

element(by.css('paste-css-here'));
element(by.model('paste-model-here')); // refers to ng-model directive
element (by.input( 'paste-username-here' )); element(by.buttonText('paste-button-name-here'));
element(by.partialButtonText('paste-button-name-here'));
element(by.linkText('paste-link-name-here'));
element(by.partialLinkText('paste-link-name-here'));

 

That's it for now!