How can I get currently selected option value of selectbox?
I have tried below code but it\'s not working.
element(by.css(\'#selectbox\')).all(by.tag
You can either use .filter() to filter out the selected option, or target it directly with a CSS selector:
.filter()
element(by.css('#selectbox option[selected]'))
Note that there is an overall nicer way to deal/interact with the select in Protractor:
select