Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Replaced XPath selectors with CSS selectors across the codebase for consistency and improved handling.
Key points:
xpath
withcss
selectors inskyvern/exceptions.py
forMissingElement
andMultipleElementsFound
exceptions.skyvern/forge/agent.py
to useid_to_css_dict
instead ofid_to_xpath_dict
for artifact creation.skyvern/forge/sdk/artifact/models.py
to deprecateVISIBLE_ELEMENTS_ID_XPATH_MAP
and introduceVISIBLE_ELEMENTS_ID_CSS_MAP
.skyvern/forge/sdk/artifact/storage/base.py
to mapVISIBLE_ELEMENTS_ID_CSS_MAP
tojson
.skyvern/webeye/actions/handler.py
to use CSS selectors in various action handlers (handle_click_action
,handle_input_text_action
, etc.).skyvern/webeye/scraper/scraper.py
to buildid_to_css_dict
instead ofid_to_xpath_dict
.resolve_locator
function inskyvern/webeye/utils/dom.py
to use CSS selectors.Generated with ❤️ by ellipsis.dev