Don't select disabled selects

This commit is contained in:
Matthew Horan 2015-06-28 17:19:55 -04:00
parent 44c361909c
commit 2ed3515849
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@ Capybara = {
var optionNode = this.getNode(index);
var selectNode = optionNode.parentNode;
if (optionNode.disabled)
return;
// click on select list
this.triggerOnNode(selectNode, 'mousedown');
selectNode.focus();