Class: Selenium::WebDriver::Interactions::Pause
- Inherits:
-
Interaction
- Object
- Interaction
- Selenium::WebDriver::Interactions::Pause
- Defined in:
- lib/selenium/webdriver/common/interactions/interaction.rb
Constant Summary
Constants inherited from Interaction
Instance Attribute Summary
Attributes inherited from Interaction
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(source, duration = nil) ⇒ Pause
constructor
A new instance of Pause.
- #type ⇒ Object
Constructor Details
#initialize(source, duration = nil) ⇒ Pause
Returns a new instance of Pause.
35 36 37 38 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 35 def initialize(source, duration = nil) super(source) @duration = duration end |
Instance Method Details
#encode ⇒ Object
44 45 46 47 48 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 44 def encode output = {type: type} output[:duration] = (@duration * 1000).to_i if @duration output end |
#type ⇒ Object
40 41 42 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 40 def type PAUSE end |