mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Don't select disabled selects
This commit is contained in:
parent
44c361909c
commit
2ed3515849
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue