mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
implement node#selected?
This commit is contained in:
parent
983b556fa8
commit
63e5a53c01
2 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,10 @@ class Capybara::Driver::Webkit
|
|||
invoke("visible") == "true"
|
||||
end
|
||||
|
||||
def selected?
|
||||
invoke("selected") == "true"
|
||||
end
|
||||
|
||||
def checked?
|
||||
self['checked']
|
||||
end
|
||||
|
|
|
@ -91,6 +91,10 @@ Capybara = {
|
|||
return true;
|
||||
},
|
||||
|
||||
selected: function (index) {
|
||||
return this.nodes[index].selected;
|
||||
},
|
||||
|
||||
value: function(index) {
|
||||
return this.nodes[index].value;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue