您可以让我知道如何改进以下脚本,以实际单击导出按钮。下面的脚本转到报告页面,但没有单击导出按钮: from selenium import webdriver
options.add_argument("<Path to Chrome profile>") #Path to your chrome profile
drive
我需要能够读取设置文本文件的Chrome扩展名,但不要求用户设置该文件的路径。我已经尝试过以下方法,但是XMLHttpRequest()不适用于Chrome中的file:///path/to/file.txt URL。var x = new XMLHttpRequest(); x.send();
myTextFile=x.responseText
以下代码起作用:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
chrome.Network.enable()
script="t='hi,';c='thiscode works on the