Class: Capybara::Playwright::Node::SendKeys::TypeText
- Inherits:
-
Object
- Object
- Capybara::Playwright::Node::SendKeys::TypeText
- Defined in:
- lib/capybara/playwright/node.rb
Instance Method Summary collapse
- #execute_for(element) ⇒ Object
-
#initialize(text) ⇒ TypeText
constructor
A new instance of TypeText.
Constructor Details
#initialize(text) ⇒ TypeText
Returns a new instance of TypeText.
617 618 619 |
# File 'lib/capybara/playwright/node.rb', line 617 def initialize(text) @text = text end |
Instance Method Details
#execute_for(element) ⇒ Object
621 622 623 |
# File 'lib/capybara/playwright/node.rb', line 621 def execute_for(element) element.type(@text) end |