twill是否正确运行javascript? [英] Does twill run javascript correctly/at all?

查看:73
本文介绍了twill是否正确运行javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我运行斜纹脚本来下载网页,twill脚本会在页面上运行任何javascript(内联或其他)吗?它会正确地做到吗?

If I run a twill script to download a web page, will the twill script run any javascript (inline or otherwise) on the page? Will it do it correctly?

官方斜纹网站似乎并不表示斜纹布是否支持js(这让我觉得它没有)

The official twill site doesn't seem to indicate whether or not twill supports js (which makes me guess that it doesn't)

推荐答案

来自斜纹里布网站


twill努力成为Web浏览器的完整实现,仅省略JavaScript支持。

twill strives to be a complete implementation of a Web browser, omitting only JavaScript support.

(这是我上面链接的页面中的第一句话)

(that's the very first sentence in the page I linked above)

所以我想你问题的答案是不,它没有。

So I guess the answer to your question is "no, it doesn't".

如果这对您来说是个问题,您是否考虑使用与完整标准浏览器集成的自动化测试平台,例如< a href =http://seleniumhq.org/ =nofollow> Selenium ?

If that's a problem for you, have you considered using an automated testing platform which integrates with a full standard browser, such as Selenium?

这篇关于twill是否正确运行javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆