如果我们看看它的描述,它是
Sets the amount of time to wait for an asynchronous script to finish execution before throwing如果有人用一个例子来解释它,那将是非常有帮助的。如果我为setScriptTimeout设置了一些时间,那么在执行每个Selenium命令(比如查找元素、单击它等)之前,它是否需要等待指定的时间才能完成它的执行?
在我的chrome扩展中,我有一个后台脚本,它将获取使用XMLHttpRequest需要的一些数据。= new XMLHttpRequest();xhr.open("GET", "));我想知道xor.send()什么时候运行。我注意到,每次我通过按下
按钮,xhr.send()将被调用。我还注意到,打开一个新的选项卡/窗口不会导致后台脚本</