GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: added web-first assertions (#1036) · Coder-Soder/playwright-python@bea12da

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • playwright
    • _impl
      • _api_structures.py
      • _assertions.py
      • _locator.py
      • _page.py
      • _path_utils.py
    • async_api
      • __init__.py
      • _generated.py
    • sync_api
      • _generated.py
  • scripts
    • expected_api_mismatch.txt
    • generate_api.py
    • generate_async_api.py
    • generate_sync_api.py
  • setup.py
  • tests/async
    • test_assertions.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎playwright/_impl/_api_structures.py‎

Copy file name to clipboardExpand all lines: playwright/_impl/_api_structures.py
+25-1Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import sys
16-
from typing import Dict, List, Optional, Union
16+
from typing import Any, Dict, List, Optional, Union
1717

1818
if sys.version_info >= (3, 8): # pragma: no cover
1919
from typing import Literal, TypedDict
@@ -171,3 +171,27 @@ class FormField(TypedDict, total=False):
171171
name: str
172172
value: Optional[str]
173173
file: Optional[ServerFilePayload]
174+
175+
176+
class ExpectedTextValue(TypedDict, total=False):
177+
string: str
178+
regexSource: str
179+
regexFlags: str
180+
matchSubstring: bool
181+
normalizeWhiteSpace: bool
182+
183+
184+
class FrameExpectOptions(TypedDict, total=False):
185+
expressionArg: Any
186+
expectedText: Optional[List[ExpectedTextValue]]
187+
expectedNumber: Optional[int]
188+
expectedValue: Optional[Any]
189+
useInnerText: Optional[bool]
190+
isNot: bool
191+
timeout: Optional[float]
192+
193+
194+
class FrameExpectResult(TypedDict):
195+
matches: bool
196+
received: Any
197+
log: List[str]

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.