Category : casperjs

I am trying to select an option from a dropdown menu. Here is the HTML: <select data-val="true" data-val-number="The field Region must be a number." data-val-required="The Region field is required." id="Region" name="Region" tabindex="2" value="6"> <option value="1">North</option> <option value="2">South</option> <option value="3">West</option> <option value="4">East</option> <option value="7">MidWest</option> <option value="5">MidEast</option> <option value="6">NorthEast</option> <option value="8">NorthWest</option> </select> How can i do this ..

Read more

I also tried changing the user agent but still not working, also with some other websites ajax data not scrapped. When i try to open scrape these websites with file_get_contents() then it returns "Failed to open stream". But with CURL it’s working fine. var casper = require(‘casper’).create({ verbose: false, logLevel: ‘debug’, pageSettings: { loadImages: true, ..

Read more