Wraps Playwright's async element locator to perform browser interactions like clicks and text input with navigation tracking and outcome validation for web scraping.
from __future__ import annotations
import asyncio
import base64
import functools
import time
from typing import TYPE_CHECKING, Optional
from loguru import logger
from playwright.async_api import Locator
from dendrite.async_api._api.browser_api_client import BrowserAPIClient
from dendrite._common._exceptions.dendrite_exception import IncorrectOutcomeError
if TYPE_CHECKING:
from dendrite.async_api._core.dendrite_browser import AsyncDendrite
from dendrite.async_api._core._managers.navigation_tracker import NavigationTracker
from dendrite.async_api._core.models.page_diff_information import (
PageDiffInformation,
)
from dendrite.async_api._core._type_spec import Interaction
from dendrite.async_api._api.response.interaction_response import (
InteractionResponse,
)
from dendrite.as
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key