mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
make sure selected? returns a boolean
This commit is contained in:
parent
c44714102f
commit
093443257d
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#### Bug fixes ####
|
||||
* Fix clicking on <area> element in an image map (Thomas Walpole)
|
||||
* Node#selected? now returns false rather than nil when an option element is not selected (Thomas Walpole)
|
||||
|
||||
### 1.8.1 ###
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ module Capybara::Poltergeist
|
|||
end
|
||||
|
||||
def selected?
|
||||
self[:selected]
|
||||
!!self[:selected]
|
||||
end
|
||||
|
||||
def disabled?
|
||||
|
|
Loading…
Add table
Reference in a new issue