Wednesday, June 11, 2014

Protractor: How to click a select option that has a given value

Today I needed to click on a select option that had a specific value using protractor.
After Googling for a while, I did it using the element selection by xpath.
This is the helper function I created:



And this is how it's used from the test:



----------------

PS: Check also my previous posts about Protractor:

No comments:

Post a Comment