30 lines
1.7 KiB
Plaintext
30 lines
1.7 KiB
Plaintext
Traceback (most recent call last):
|
||
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-raw-workflows/browse-browser.py", line 39, in <module>
|
||
ctx=browser.new_context(viewport={'width':width,'height':900});case(ctx.new_page(),kind,str(width));ctx.close()
|
||
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-raw-workflows/browse-browser.py", line 32, in case
|
||
page.keyboard.press('Escape');expect(dialog).to_have_count(0);expect(trigger).to_be_focused()
|
||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/sync_api/_generated.py", line 19651, in to_have_count
|
||
self._sync(self._impl_obj.to_have_count(count=count, timeout=timeout))
|
||
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync
|
||
return task.result()
|
||
~~~~~~~~~~~^^
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 382, in to_have_count
|
||
await self._expect_impl(
|
||
...<5 lines>...
|
||
)
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 85, in _expect_impl
|
||
raise AssertionError(
|
||
f"{out_message}\nActual value: {actual}{error_message} {format_call_log(result.get('log'))}"
|
||
)
|
||
AssertionError: Locator expected to have count '0'
|
||
Actual value: 1
|
||
Call log:
|
||
- Expect "to_have_count" with timeout 5000ms
|
||
- waiting for get_by_role("dialog")
|
||
9 × locator resolved to 1 element
|
||
- unexpected value "1"
|
||
|