Closed LawyZheng closed 1 month ago
Optimized React Select dropdown handling in skyvern/webeye by updating selectors and improving interaction methods.
skyvern/webeye
Key points:
skyvern/webeye/scraper/domUtils.js
getReactSelectOptionElements
div[class*='select__option']
skyvern/webeye/utils/dom.py
ReactSelectDropdown.__find_input_locator
input[class*='select__input']
ReactSelectDropdown.get_current_value
div[class*='select__single-value']
ReactSelectDropdown.select_by_index
ReactSelectDropdown.open
focus
ArrowDown
ReactSelectDropdown.close
Escape
Generated with :heart: by ellipsis.dev
Summary:
Optimized React Select dropdown handling in
skyvern/webeye
by updating selectors and improving interaction methods.Key points:
skyvern/webeye/scraper/domUtils.js
:getReactSelectOptionElements
to usediv[class*='select__option']
for option selection.skyvern/webeye/utils/dom.py
:ReactSelectDropdown.__find_input_locator
to useinput[class*='select__input']
.ReactSelectDropdown.get_current_value
to usediv[class*='select__single-value']
.ReactSelectDropdown.select_by_index
to usediv[class*='select__option']
.ReactSelectDropdown.open
to usefocus
andArrowDown
key press for opening the dropdown.ReactSelectDropdown.close
to useEscape
key press for closing the dropdown.Generated with :heart: by ellipsis.dev