Class: Playwright::Test::Expect
- Inherits:
-
Object
- Object
- Playwright::Test::Expect
- Defined in:
- lib/playwright/test.rb
Overview
ref: github.com/microsoft/playwright-python/blob/main/playwright/sync_api/__init__.py#L90
Instance Method Summary collapse
- #call(actual, message = nil) ⇒ Object
-
#initialize ⇒ Expect
constructor
A new instance of Expect.
Constructor Details
#initialize ⇒ Expect
Returns a new instance of Expect.
7 8 9 |
# File 'lib/playwright/test.rb', line 7 def initialize @timeout_settings = TimeoutSettings.new end |
Instance Method Details
#call(actual, message = nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/playwright/test.rb', line 11 def call(actual, = nil) if actual.is_a?(Locator) LocatorAssertions.new( LocatorAssertionsImpl.new( actual, @timeout_settings.timeout, false, , ) ) else raise NotImplementedError.new("Only locator assertions are currently implemented") end end |