Class: Ext::Button

Inherits:
Component show all
Defined in:
lib/selenium-extjs/component/Button.rb

Instance Attribute Summary

Attributes inherited from Component

#parent

Instance Method Summary collapse

Methods inherited from Component

#getId, #highlight, #init_component, #initialize, #method_missing, #selector, #wait_for_ajax

Constructor Details

This class inherits a constructor from Ext::Component

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ext::Component

Instance Method Details

#clickObject



5
6
7
8
# File 'lib/selenium-extjs/component/Button.rb', line 5

def click
 wait_for_ajax()
  @selenium.click_at(selector(), "0,0")
end

#nodeObject



10
11
12
# File 'lib/selenium-extjs/component/Button.rb', line 10

def node
  return "//table[@id='#{@id}']//button"
end