I'm trying to use casperjs on easyjet.com because it is very similar to what I have to test in the future, (very similar ajax part in result page).
In the flight results page when I click on a link I can not trigger any action ajax.
From debugging I see that the link is then clicked but does not trigger ajax part.
I cannot understand where I'm wrong.
Thanks in advance
this is the code:
casper.thenEvaluate (function () {
casper.waitForSelector ("# Flight3987022. priceSmaller.targetPrice.formatedPrice.cellPrice",
function success () {
casper.assertExists ("# Flight3987022. priceSmaller.targetPrice.formatedPrice.cellPrice");
this.click ("# Flight3987022. priceSmaller.targetPrice.formatedPrice.cellPrice");
},
function fail () {
casper.assertExists ("# Flight3987022. priceSmaller.targetPrice.formatedPrice.cellPrice");
});
});