Skip to content

how to wait element disappear #2

Description

@zwb3707811

i call ai_page.ai_action('等待Generating response消失')
but /Library/Python/3.9/site-packages/autowing/playwright/fixture.py:142: ValueError

and don.t see it in code
# Perform the action
element = self.page.locator(selector)
if action == 'click':
element.click()
elif action == 'fill':
element.fill(instruction.get('value', ''))
if instruction.get('key'):
element.press(instruction.get('key'))
elif action == 'press':
element.press(instruction.get('key', 'Enter'))
else:
raise ValueError(f"Unsupported action: {action}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions