diff --git a/browser-extension/chrome-extension/scripts/testcase/main.js b/browser-extension/chrome-extension/scripts/testcase/main.js index be146cd..bea42b2 100644 --- a/browser-extension/chrome-extension/scripts/testcase/main.js +++ b/browser-extension/chrome-extension/scripts/testcase/main.js @@ -7,9 +7,8 @@ const copyButton = $('span[data-toggle="tooltip"]:visible').first(); if (allTestCasesSz === 0) return; - const downloadButton = (new DOMParser()).parseFromString(``, "text/html").body.children[0]; - downloadButton.setAttribute('title', "Just click once to download."); - document.getElementById('main-container').querySelector('div').children.item(1).querySelector('span').appendChild(downloadButton); + const downloadButton = (new DOMParser()).parseFromString(``, "text/html").body.children[0]; + document.querySelector('span.h2').appendChild(downloadButton); downloadButton.onclick = async () => { downloadButton.disabled = true; downloadButton.textContent += '\u{231B}';