Skip to content

Commit 3b525bf

Browse files
authored
made target text optional so we can use fallback (#138)
* made target text optional so we can use fallback * updated github workflow
1 parent 32792e2 commit 3b525bf

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
working-directory: workflows
4747
steps:
4848
- uses: actions/checkout@v4
49+
with:
50+
ref: ${{ github.ref }} # Checkout the release tag commit
4951
- name: Set up Python
5052
uses: actions/setup-python@v5
5153
with:
@@ -54,8 +56,3 @@ jobs:
5456
- run: uv run ruff check --no-fix --select PLE # check only for syntax errors
5557
- run: uv build
5658
- run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}
57-
- name: Push to stable branch (if stable release)
58-
if: startsWith(github.ref_name, 'v') && !contains(github.ref_name, 'rc')
59-
run: |
60-
git checkout -b stable
61-
git push origin stable

workflows/workflow_use/schema/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ class SelectorWorkflowSteps(BaseWorkflowStep):
4343
)
4444

4545
# PRIMARY: Text-based semantic targeting (non-brittle)
46-
target_text: str = Field(
47-
...,
48-
description='Visible or accessible text to identify the element. Use hierarchical context for disambiguation (e.g., "Submit (in Personal Information)", "Edit (item 2 of 3)").',
46+
target_text: Optional[str] = Field(
47+
None,
48+
description='Visible or accessible text to identify the element. Use hierarchical context for disambiguation (e.g., "Submit (in Personal Information)", "Edit (item 2 of 3)"). If None, relies on selectorStrategies fallback.',
4949
)
5050

5151
# OPTIONAL: Context hints for disambiguation (stored as text, not selectors)

0 commit comments

Comments
 (0)