Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to_slug func to slugify string #169

Open
dwisiswant0 opened this issue Sep 13, 2024 · 0 comments
Open

Add to_slug func to slugify string #169

dwisiswant0 opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@dwisiswant0
Copy link
Member

Example use case:

headless:
  - steps:
      - action: navigate
        args:
          url: "{{BaseURL}}"
      - action: waitload
      - action: screenshot
        args:
          fullpage: true
          to: "/path/to/Screenshots/{{to_slug(concat("Screenshot", "-", BaseURL, "-", date_time("%Y-%M-%D-%H-%m")))}}"
          # Output of DSL: Screenshot-https-www-nytimes-com-2024-09-13-22-54
@dwisiswant0 dwisiswant0 added the enhancement New feature or request label Sep 13, 2024
@dwisiswant0 dwisiswant0 self-assigned this Sep 13, 2024
@dwisiswant0 dwisiswant0 added Type: Enhancement Most issues will probably ask for additions or changes. and removed enhancement New feature or request labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

No branches or pull requests

1 participant