We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ca6cc commit 1ab4631Copy full SHA for 1ab4631
server/src/workflow-management/selector.ts
@@ -175,6 +175,13 @@ export const getElementInformation = async (
175
info.innerText = targetElement.textContent ?? '';
176
} else if (targetElement.tagName === 'IMG') {
177
info.imageUrl = (targetElement as HTMLImageElement).src;
178
+ } else if (targetElement?.tagName === 'SELECT') {
179
+ const selectElement = targetElement as HTMLSelectElement;
180
+ info.innerText = selectElement.options[selectElement.selectedIndex]?.text ?? '';
181
+ info.attributes = {
182
+ ...info.attributes,
183
+ selectedValue: selectElement.value,
184
+ };
185
} else {
186
info.hasOnlyText = targetElement.children.length === 0 &&
187
(targetElement.textContent !== null &&
0 commit comments