Monday, 5 June 2017

Set date range with CasperJs

I'm getting started with CasperJS and I'm trying to retrieve the director's purchases from the past week from this website:

https://markets.ft.com/data/director-dealings

The logic would be as follows:

  1. Click on the filter button
  2. Check the purchases box
  3. Get current date
  4. Enter it in the 'From' box
  5. Enter +7 days in the 'To' box

I'd appreciate if someone could point out what this would look like programmatically.



via Charles Fried

No comments:

Post a Comment