。
chrome.tabs.executeScript(tabId, {
code: `document.evaluate('//*[@id="tsf"]/div[2]/div[3]/center/input[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.setAttribute("id", "btn_search");`
});
chrome.tabs.executeScript(tabId, {
code: `console.log(document.getElementById("btn_search"));document.getElementById("btn_search").click();`
});