1

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?

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

shelman
  • 2,689
  • 15
  • 17

1 Answers1

3

From the twill website:

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".

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?

Spudley
  • 166,037
  • 39
  • 233
  • 307
  • I'm trying to do something using a 'headless browser' sort of framework, so it doesn't look like selenium would work. Accepting. – shelman Jun 01 '11 at 14:54
  • Consider reading that http://www.ianbicking.org/twill-in-javascript.html before you discard. Selenium is not a easy-to-use software, but MORE powerful. – m3nda May 25 '15 at 23:46