How to click through a form on an interim page?

Hi,

I'm using the FF plugin against Comcast's XFinity email site and it works very well, with one exception.  Sometimes when I access the Comcast email site, depending on the network I am on, an interim "warning" page is displayed by the network provider.  All I need to do is click a "Yes, I want to continue!" button on the page and it takes me onto my original destination.  A session cookie is then stored which causes the page to not display again for a couple of hours.

So my question is what is the logic I need to introduce to the Comcast script in order to account for the occasional existence of this page, and click through it?

I'm sure it must be possible given all the rest these scripts can do (login, post forms, etc...) I just haven't been able to figure it out by looking at scripts and the source scripts for the plugin.

Any help would be greatly appreciated.

Thanks,

Dan

tobwithu's picture

It can be tricky.
You should find which url is accessed when you press continue button.
In the script, if you find 'warning' page, simulate button press with http request.

If I can modify the script, it is the more simple way.
But I can't make the warning page to show up.

dankirkd's picture

The script is the only Comcast script I can find in the script library.  Pressing the continue button takes me to the URL originally trying to be accessed, in this case the dataURL is http://xfinityconnect.mail.comcast.net/.  It uses a form that has an input button with an id attribute, and with an onclick event defined that calls a Javascript function that eventually loads the target page.

It isn't clear to me where in the script I should insert the potential extra step.

tobwithu's picture

Please send the html source of the warning page to xndevel@gmail.com

dankirkd's picture

With tobwithu's excellent assistance I have successfully applied a slight script update to handle the interim page.  It adds steps to look for the page, and a means to POST a necessary call with specific headers to reacquire the session that's required so that the interim page won't appear.