(locator_calls: list[ParsedPlaywrightCode], page: Page)
| 1120 | |
| 1121 | |
| 1122 | def locate(locator_calls: list[ParsedPlaywrightCode], page: Page) -> Locator: |
| 1123 | locator = page |
| 1124 | for call in locator_calls: |
| 1125 | function_name = call["function_name"] |
| 1126 | arguments = call["arguments"] |
| 1127 | keywords = call["keywords"] |
| 1128 | locator = getattr(locator, function_name)(*arguments, **keywords) |
| 1129 | return locator # type: ignore[return-value] |
| 1130 | |
| 1131 | |
| 1132 | async def alocate( |
no outgoing calls
no test coverage detected