I have this function that finds a button and presses it, but after that a warning appears and I need to confirm it using phantom.js
function() { page.evaluate(function() { $('.item-list clicked').first().find($('.comment-delete')).find('a').click(); }) }
Maybe I can emulate a function that triggers a warning without a click? or use the waitFor function to wait for this warning? (this is unlikely, waitFor waiting only for DOM objects, I think so)
javascript web-scraping phantomjs confirm
Alice polansky
source share