class MatChip

Public Instance Methods

disabled?() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 6
def disabled?
  element(class: 'mat-chip-disabled').exist?
end
label() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 10
def label
  nokogiri.xpath('//text()')[0]
end
removable?() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 18
def removable?
  element(class: 'mat-chip-remove').exist?
end
remove() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 14
def remove
  element(class: 'mat-chip-remove').click
end
selectable?() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 26
def selectable?
  element(class: 'mat-chip-select').exist?
end
selected?() click to toggle source
# File lib/insite/examples/material_angular_io/components/mat_chip.rb, line 22
def selected?
  aria_selected == 'true'
end