(locator_calls: list[ParsedPlaywrightCode], page: Page)
| 979 | |
| 980 | @beartype |
| 981 | def locate(locator_calls: list[ParsedPlaywrightCode], page: Page) -> Locator: |
| 982 | locator = page |
| 983 | for call in locator_calls: |
| 984 | function_name = call["function_name"] |
| 985 | arguments = call["arguments"] |
| 986 | keywords = call["keywords"] |
| 987 | locator = getattr(locator, function_name)(*arguments, **keywords) |
| 988 | return locator # type: ignore[return-value] |
| 989 | |
| 990 | |
| 991 | @beartype |
no outgoing calls
no test coverage detected