-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stopped working - booking page has changed again #99
Comments
The program line |
Will take a look tonight |
Looks like they are no longer using flatpickr as the calendar. If someone could send me the page source when they see an available date that would be really helpful. Not sure what it looks like when a data is available. |
I've only seen it from the An available date is missing the <div class="vud__d__item">
<div 7="" aria-label="August 31" tabindex="-1">31</div>
</div> |
Oddly enough though, just making a date 'able to be selected' seems to be more than just removing the You can select a 'date' that isn't in the month, but if you change an actual date by removing the |
@mark-bloom How did you make the date to be able to be selected? |
@angusmcdonald There are some more tweaks needed to then convert that element into the YYYY-MM-DD format |
@alexDrinkwater I haven't been able to work out how to make a date able to be selected. If I change the class to Perhaps it has to do with 'on page load identify class to give properties' In below: 1st Oct manually changed class to |
I'm busy for the next few hours. If you guys can figure out how to enable clicking on a date let me know and I can make an update tonight. |
Not particularly a developer, but to pseudo-code:
|
@mark-bloom I'm getting all the elements via a simple document.getElementsByClassName('vud__d__item'); Here's the full method that I've been working with. It's a little hacky since i didnt have much time. ` async function findAvailability(page) {
}` |
Yup, I haven't gotten an available result to properly test, but here's what I'm using atm to refresh and attempt to select. Uses querySelectorAll instead of getElement*** as what google told me to cover the classname changes (since in the react code it shows a Just had to get rid of the `async function findAvailability(page) {
}` |
@mark-bloom Could you please check out my branch from #102 and see if it is working for you? |
@mark-bloom Your intel helped a lot, thanks! |
@alexDrinkwater Did you figure out how to fix it ? |
@alexDrinkwater Oddly enough raised an error about puppeteer-firefox (which resolved after reinstalling puppeteer via npm, so probably just on my end). Running it now, looks like it should be fine, but I know the behaviour on the 'next' button + selecting a date is a bit weird atm, so until one pops up, can't guarantee. |
@mark-bloom If you haven't, try setting testDates to true and see if the date gets selected for you. Still need to improve the test dates to make it like it used to be where you could specify a date, but this is better than nothing for now. @mochi889 Yes |
The selector for testDates fails with a rogue '.' so I've commented out that block for the moment until I've had a chance to review |
@alexDrinkwater Yeah, testDates on true works fine; beeps and can click on next, so should be working fine. |
@mark-bloom Thanks. Merged in the Pull Request and published windows release. Closing this issue for now. @jvolker Paging you for a mac release. |
At this point 'dates' will more annoying than previously. Like @shrey91 was doing earlier, I guess you'd have to split the |
@mark-bloom I think I solved that issue with |
@mark-bloom I think I understand what you mean now. You are referring to finding the correct element from 'YYYY-MM-DD' format. It also a little difficult because I found you need to change the DOM before the miq js runs otherwise the click handler doesn't get registered. |
@alexDrinkwater I've got to the point where test dates work as well. It just refreshes after 5 seconds of wait. In case you wanted to see what the change was. `async function findAvailability(page) {
}` |
Thanks a lot, @alexDrinkwater. I just uploaded the mac release. |
Hi All
have you experience issue with the app.. now it all shows all the months calendar which is good but it is not refreshing automatically.. i check on the MIQ website and it is the same
The text was updated successfully, but these errors were encountered: