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 5968402 commit f90c1e2Copy full SHA for f90c1e2
collectors/CookiePopups/scrapeScript.js
@@ -304,7 +304,12 @@ function getUniqueSelector(el) {
304
*/
305
function getButtonData(el) {
306
const actionableButtons = excludeContainers(getButtonLikeElements(el)).filter(
307
- (b) => isVisible(b) && !isDisabled(b) && b.innerText.trim(),
+ (b) =>
308
+ isVisible(b) &&
309
+ !isDisabled(b) &&
310
+ (b.innerText.trim() ||
311
+ // <input> values do not appear in innerText
312
+ (b instanceof HTMLInputElement && b.type in ['submit', 'button'] && b.value?.trim())),
313
);
314
315
return actionableButtons.map((b) => ({
0 commit comments