How can I get dynamically web content using Perl?

后端 未结 2 1714
悲&欢浪女
悲&欢浪女 2021-01-07 03:58

This is kind of tricky. There is this webpage which, I am guessing, uses some kind of AJAX to pull out content based on the search query. When I fetch the page using get in

2条回答
  •  -上瘾入骨i
    2021-01-07 04:20

    If you are writing tests that need to check the rendered page, you can have a look at Schwern's javascript-tap-harness, which works with Selenium and handles all the scaffolding.

    I also found Using WWW::Selenium To Test Or Automate An Ajax Website pretty useful.

提交回复
热议问题