// Find an element using a css selector. by.css('.myclass') // Find an element with the given id. by.id('myid') // Find an element using an input name selector. by.name('field_name') // Find an element with a certain ng-model. // Note that at the moment, this is only supported for AngularJS apps. by.model('name') // Find an element bound to the given variable. // Note that at the moment, this is only supported for AngularJS apps. by.binding('bindingname')