pythonのseleniumでdriver.find_element(By.XPATH, ‘//*[@name=”q”]’)を実行することで、ドキュメント全体を対象にname属性の値がqである要素を取得できる updated: 2025/11/17 created: 2025/11/17