Saturday, July 30, 2016

Protractor Basic Functions


Protractor Few Generic Functions


This is my second blog, where I will show few generic functions for protractor with usage.


This is the generic function for selecting value from drop down. It requires two parameters, one for the modelName and second for the index value which you want to select.


 this.selectDropdownValue = function(dropdownmodelname,index){  
    element(by.model(dropdownmodelname)).$('[value="' + index + '"]').click();  
 };  

No comments:

Post a Comment