1
0
Fork 0
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:
Matthew Horan 2015-06-28 17:19:55 -04:00
parent 44c361909c
commit 2ed3515849

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();