Class: RFormUnit::SaveasFileDialog
- Inherits:
-
Window
- Object
- BaseControl
- Window
- RFormUnit::SaveasFileDialog
- Defined in:
- lib/rformunit/saveas_file_dialog.rb
Instance Attribute Summary
Attributes inherited from Window
Attributes inherited from BaseControl
Instance Method Summary collapse
- #click_save ⇒ Object
- #enter_filepath(file_path) ⇒ Object
-
#initialize(title = "Save As") ⇒ SaveasFileDialog
constructor
A new instance of SaveasFileDialog.
Methods inherited from Window
#button, #click_button, #close, #exists?, #focus, #focus_control, #get_control_text, #get_text, #hide_dropdown, #pixel_color, #send_control_text, #set_control_text, #show_dropdown, #statusbar_text, #to_s
Methods inherited from BaseControl
#click, #focus, #get_text, #is_enabled?, #is_visible?, #send_text, #set_text
Methods included from Driver
#close_window, #driver, #focus_window, #init, #key_press, #open_file_dialog, #set_autoit_option, #wait_and_focus_window, #wait_for_window, #window_exists?
Constructor Details
#initialize(title = "Save As") ⇒ SaveasFileDialog
Returns a new instance of SaveasFileDialog.
4 5 6 |
# File 'lib/rformunit/saveas_file_dialog.rb', line 4 def initialize(title = "Save As") focus_window(title) end |
Instance Method Details
#click_save ⇒ Object
12 13 14 |
# File 'lib/rformunit/saveas_file_dialog.rb', line 12 def click_save ("Button2") end |
#enter_filepath(file_path) ⇒ Object
8 9 10 |
# File 'lib/rformunit/saveas_file_dialog.rb', line 8 def enter_filepath(file_path) set_control_text("Edit1", file_path) end |