How to click a “select option” and then evaluate loaded content with casperjs

后端 未结 9 1538
长情又很酷
长情又很酷 2021-01-02 01:46

I\'m trying to crawl the sizes for this product:

Link to product

The problem: The sizes are loaded after the color of the product is selected.

In th

9条回答
  •  长情又很酷
    2021-01-02 02:19

    This is how I do it

    this.evaluate(function() {
        $('#select_element_selector').val('value').change();
    });
    

    The change() is very important

    I'm assuming that you have jQuery on the page

提交回复
热议问题