Closed LawyZheng closed 1 week ago
Replaced XPath selectors with CSS selectors across the codebase for consistency and improved handling.
Key points:
xpath
css
skyvern/exceptions.py
MissingElement
MultipleElementsFound
skyvern/forge/agent.py
id_to_css_dict
id_to_xpath_dict
skyvern/forge/sdk/artifact/models.py
VISIBLE_ELEMENTS_ID_XPATH_MAP
VISIBLE_ELEMENTS_ID_CSS_MAP
skyvern/forge/sdk/artifact/storage/base.py
json
skyvern/webeye/actions/handler.py
handle_click_action
handle_input_text_action
skyvern/webeye/scraper/scraper.py
resolve_locator
skyvern/webeye/utils/dom.py
Generated with :heart: by ellipsis.dev
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 :heart: by ellipsis.dev