Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <select id="selectPrimaryObject" class="form-control" ng-change="getPrimaryRelations()" ng-model="relation.from">
  2. <option id="md-option" ng-repeat="item in primaryObjectsList" value="{{item.id}}">{{item.name}}</option>
  3. </select>
  4.  
  5. element.all(by.id('selectPrimaryObject')).each(function (values, index) {
  6. values.click(); // select the <select>
  7. browser.driver.sleep(5000); // wait for the renderings to take effect
  8. element.all(by.id('md-option')).click(); // select the first md-option
  9. browser.driver.sleep(5000); // wait for the renderings to take effect
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement