MCPcopy Create free account
hub / github.com/microsoft/playwright-python / select_action

Method select_action

tests/sync/conftest.py:150–151  ·  view source on GitHub ↗
(self, title: str, ordinal: int = 0)

Source from the content-addressed store, hash-verified

148 )
149
150 def select_action(self, title: str, ordinal: int = 0) -> None:
151 self.page.locator(".action-title", has_text=title).nth(ordinal).click()
152
153 def select_snapshot(self, name: str) -> None:
154 self.page.click(f'.snapshot-tab .tabbed-pane-tab-label:has-text("{name}")')

Calls 3

clickMethod · 0.45
nthMethod · 0.45
locatorMethod · 0.45

Tested by

no test coverage detected