Class: MobyCommand::Drag

Inherits:
CommandData
  • Object
show all
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb

Instance Method Summary collapse

Constructor Details

#initialize(start_x = nil, start_y = nil, end_x = nil, end_y = nil, duration = 1) ⇒ Drag

Constructor to Tap

params

text

(optional) String to be added to text sequence if given.

returns

Instance of TypeText



33
34
35
36
37
38
39
40
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb', line 33

def initialize( start_x = nil, start_y = nil, end_x = nil, end_y = nil, duration = 1 )    
  # Set status value to nil (not executed)
  @_start_x = start_x 
  @_start_y = start_y 
  @_end_x = end_x 
  @_end_y = end_y 
  @_duration = duration 
end