<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>Thanks to all for suggestions on imacros.  </div><div><br></div><div>It does seem like it will happily drive Chrome through repetition and sleeping.    It stores macro directions in a logical way, so that if the screen is moved or resized it still finds the submit button. </div><div><br></div><div>I have to find the reference manual to see if it can read the screen contents.   It seems to suggest that. </div><div><br></div><div>I haven't yet found references to logic comparisons to see if it can take actions.  There seems to be some suggestions that as a plug-in it is restricted from getting outside its sandbox. </div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [ale] How to drive Linux browser to make a campground<br>
sniper?<br>
From: Pete Hardie via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
Date: Sat, January 13, 2018 2:47 pm<br>
To: Alan Dobkin <<a href="mailto:ALE@maestroit.com">ALE@maestroit.com</a>>, Atlanta Linux Enthusiasts<br>
<<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
<br>
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">iMacros may have been the one I used.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 13, 2018 at 2:38 PM, Alan Dobkin via Ale <span dir="ltr"><<a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text="#000000" bgcolor="#FFFFFF"> <div>Try iMacros: <a class="m_-158012233583223780moz-txt-link-freetext" href="https://imacros.net/" target="_blank">https://imacros.net/</a></div> <div>I've used it in the past with great success to automate repetitive tasks, like configuring a web-based PBX.</div> <div>The only problem with the Firefox version is that it has not been re-written to comply with Firefox Quantum, as is the case with many other excellent long-term Firefox add-ons. So you will have to use with a version prior to Firefox 57.</div><div><div class="h5"> <br> <div class="m_-158012233583223780moz-cite-prefix">On 1/13/2018 2:20 PM, Pete Hardie via Ale wrote:<br> </div> <blockquote type="cite" style="border-left: blue 2px solid; margin-left: 8px; padding-left: 8px;"> <div dir="ltr"> <div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I have used a Firefox extension that could script both butting presses and field entries, and I believe it could check data form the page.  I will see if I can look up the name<br> </div> </div> <div class="gmail_extra"><br> <div class="gmail_quote">On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <span dir="ltr"><<a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div> Boring "Real-World Details":<br> <br> <blockquote> So, we are planning a summer trip to Glacier National Park in Montana. <br> <br> We would really like to camp at Many Glaciers Campground in the park.  However, at present,  all the sites are already reserved.   They are reserved through <a href="http://recreation.gov" target="_blank">recreation.gov</a>, starting 6 months to the day from today. <br> <br> But we have a really strong impression that people initially book a long stretch, then later either reduce the duration once they get more specific plans, or cancel. <br> <br> SO, we really want to detect if/when sites become available over the next 6 months and jump on it before someone else does. <br> <br> There is someone who offers this as a service for $40 a reservation, irrespective of whether they are successful.<br> <br> </blockquote> Exciting Technology Application: <br> <br> <blockquote> Initially I looked at the HTML for their search page, with the thought of using "wget" to simulate the reservation request.   That increasingly looks like a fool's errand, assuming that they may have session cookies related to sign-on and other magic handshake crap that would be difficult to simulate.  And what happens when they alter their data fields? <br> <br> Then I thought:  All I want to do is: <br> <blockquote> Setup a browser window on our Centos 6 desktop, any browser that understands https;<br> Run that browser through the responses to get it to the search window on this campground, and put in all the dates and related input. <br> Then: <br> <blockquote> Run SOMETHING that will automate: <br> <blockquote> Hit the Search Submit button;<br> See if the resultant page contains "No Suitable availability"<br> IF Not: Email me<br> Sleep 15 minutes<br> Rinse, Later, Repeat<br> <br> </blockquote> </blockquote> </blockquote> This sounds to me like a very elemental application of a test/control manager for a GUI interface.    If I can automate an existing browser, we can eliminate all the complexities of trying to fake out their web server. <br> <br> Since this just sits on my desk in the basement, I can live with hard-coded screen coordinates. <br> <br> What tools exist in Linux to do this? <br> <br> </blockquote> regards, <br> <br> Neal Rhodes<br> MNOP Ltd<br> <br> <blockquote> <blockquote> <br> </blockquote> </blockquote> </div> <br> ______________________________<wbr>_________________<br> Ale mailing list<br> <a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br> <a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br> See JOBS, ANNOUNCE and SCHOOLS lists at<br> <a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br> <br> </blockquote> </div> <br> <br clear="all"> <br> -- <br> <div class="m_-158012233583223780gmail_signature" data-smartmail="gmail_signature">Pete Hardie<br> --------<br> Better Living Through Bitmaps</div> </div> <br> <fieldset class="m_-158012233583223780mimeAttachmentHeader"></fieldset> <br> <pre>______________________________<wbr>_________________
Ale mailing list
<a class="m_-158012233583223780moz-txt-link-abbreviated" href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a>
<a class="m_-158012233583223780moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a>
See JOBS, ANNOUNCE and SCHOOLS lists at
<a class="m_-158012233583223780moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a>
</pre> </blockquote> <br> </div></div></div> <br>______________________________<wbr>_________________<br> Ale mailing list<br> <a target="_blank" href="mailto:Ale@ale.org">Ale@ale.org</a><br> <a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br> See JOBS, ANNOUNCE and SCHOOLS lists at<br> <a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Pete Hardie<br>--------<br>Better Living Through Bitmaps</div> </div> <hr>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br>

</div>
</blockquote></span></body></html>