This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Action to create a waiting period between actions Also used for synchronizing actions across devices
Instance Attribute Summary Attributes inherited from Interaction Instance Method Summary collapseA new instance of Pause.
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Pause.
31 32 33 34 35
# File 'rb/lib/selenium/webdriver/common/interactions/pause.rb', line 31 def initialize(source, duration = nil) super(source) @duration = duration @type = :pause endInstance Method Details #assert_source(source) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39
# File 'rb/lib/selenium/webdriver/common/interactions/pause.rb', line 37 def assert_source(source) raise TypeError, "#{source.type} is not a valid input type" unless source.is_a? InputDevice end#encode ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 44 45
# File 'rb/lib/selenium/webdriver/common/interactions/pause.rb', line 41 def encode output = {type: type} output[:duration] = (@duration * 1000).to_i if @duration output end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4