Sha256: 8a735db8756100573c99677aed4093144ad4c2ee1b71fde7ad727dd00eaf435f
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
module OperaWatir class QuickTreeView < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:treeview] end #Should rather use what's already in browser def treeitems treeitems = driver.getQuickWidgetList(driver.getWindowName(window_id)).map do |java_widget| case java_widget.getType when QuickWidget::WIDGET_ENUM_MAP[:treeitem] QuickTreeItem.new(self,java_widget) end end.select { |item| item != nil } treeitems.select {|item| item.parent_name == name } end def num_treeitems treeitems.select { |item| item.position[1] == 0 }.length end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
operawatir-0.3.2-jruby | lib/operawatir/quickwidgets/quick_treeview.rb |