$(document).on("application:subapp:rendered", function(){console.log("foo");});
我的webdriver代码(Python):
driver.set_script_timeout(30)
response = driver.execute_async_script("$(document).on(\"application:subapp:rendered\", function(){return \"foo\";});"
下一步我执行页面应该会返回"foo"
但是我的回应是这样的...
TimeoutException: Message: 异步脚本超时:30秒内未接收到结果 (Session info: chrome=41.0.2272.118) (Driver info: chromedriver=2.11.298604 (75ea2fdb5c87f133a8e1b8da16f6091fb7d532 1e),platform=Windows NT 6.1 SP1 x86_64)