You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to click on button, and the page load ajax to show a popup.
So the selector will "was not found anywhere on the page".
I need to run "before" function first, to simulate click on the button first and after then call "waitForSelector".
casperInstance.waitForSelector(captureState.selector, function() {
// Processing before capture callbacks:
if (captureState.before) {
// Siblings are before functions made available in other before functions,
// see http://succss.ifzenelse.net/configuration#before.
var siblings = {};
var pageCaptures = data[captureState.page.name].captures;
for (var c in pageCaptures) {
if (c != captureState.name && pageCaptures[c].before) {
siblings[c] = pageCaptures[c].before.bind(casperInstance, siblings);
}
}
captureState.before.call(casperInstance, siblings);
}
}, function() {
self.echo('Selector "' + captureState.selector + '" was not found anywhere on the page.', 'ERROR');
});
Can you help me to build this script? Please I don't know how to do that.
Thank you,
Huy Ly.
The text was updated successfully, but these errors were encountered:
Hi,
I want to click on button, and the page load ajax to show a popup.
So the selector will "was not found anywhere on the page".
I need to run "before" function first, to simulate click on the button first and after then call "waitForSelector".
Can you help me to build this script? Please I don't know how to do that.
Thank you,
Huy Ly.
The text was updated successfully, but these errors were encountered: