mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 17:29:40 +00:00
UrlBlock - a block to navigate to a url (#1461)
This commit is contained in:
parent
401d304dd0
commit
b5d6e4184e
2 changed files with 13 additions and 0 deletions
|
@ -310,6 +310,11 @@ class FileDownloadBlockYAML(BlockYAML):
|
|||
cache_actions: bool = False
|
||||
|
||||
|
||||
class UrlBlockYAML(BlockYAML):
|
||||
block_type: Literal[BlockType.GOTO_URL] = BlockType.GOTO_URL # type: ignore
|
||||
url: str
|
||||
|
||||
|
||||
PARAMETER_YAML_SUBCLASSES = (
|
||||
AWSSecretParameterYAML
|
||||
| BitwardenLoginCredentialParameterYAML
|
||||
|
@ -337,6 +342,7 @@ BLOCK_YAML_SUBCLASSES = (
|
|||
| LoginBlockYAML
|
||||
| WaitBlockYAML
|
||||
| FileDownloadBlockYAML
|
||||
| UrlBlockYAML
|
||||
)
|
||||
BLOCK_YAML_TYPES = Annotated[BLOCK_YAML_SUBCLASSES, Field(discriminator="block_type")]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue