driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
Hi Sanjay!
Your Geb spec is not really a test but a download tool. I guess
you want to do something like this, given an input file src/test/resources/games.txt
like this:
Alexander Kriegisch https://scrum-master.de
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/1a73a51c-d021-45aa-97bf-11cff20d4b49n%40googlegroups.com.
Sorry, I accidentally sent a slightly older version of the Geb spec than I intended to. Here is a refactored version:
Alexander Kriegisch https://scrum-master.de
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/71ba5d39-fbee-6b56-f9b2-bc8b1dfdfbdf%40Kriegisch.name.
Sorry Sanjay, but is it so difficult to spot the places where you
need to change the code? This mailing list is no free version of
Upwork where people do your job for you. I was just being friendly
the first time, rewriting your code and even guessing which
website you want to download from, trying to get you started.
Anyway, a few pointers:
Firstly, if you download the PS1 games manually, it looks like they are *.7z archives instead if *.zip. Therefore, change this line:
Secondly, the downloads are way bigger and possibly need more than 30 seconds to download, i.e. you could e.g. wait 5 minutes (300 seconds) here:
Please note that again, I have changed the file extension to "7z". It should be very easy to change the numberOfMatchingFiles helper methods in such a way as to check for both ".7z "and ".zip" files and call it without the extension in the archive name. I leave that as a little homework to you in order to understand the code better. 🙂
Regards
Alexander Kriegisch https://scrum-master.de
looks like this script is doing what i am trying to do.
could you please modify the code and share so that it works for ps1 games.
lets say there are three links in the games.txt file.
vimm doesnt allow multiple downloads so we need to wait until one download completes. the program should download the next file automatically after the first one downloads.
could you please share the program code? i appreciate it a lot.
Thank you!
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/12073366-ea72-4ced-ba08-76d03f56af7en%40googlegroups.com.
I never experienced that problem while testing this. Your error
description is a bit fuzzy, too. I do not even know if the problem
occurs in Chrome, Firefox, headless or with normal browser.
Therefore, I cannot easily help you. Maybe it would be a good idea
to create a page class with an 'at' checker and cleanly defined
page elements (navigators). If you are able to more precisely
describe what is going wrong and why you think 'go' hangs, maybe I
can give you better advice.
Alexander Kriegisch https://scrum-master.de
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/990ea942-4ee8-48f1-acf4-b2eda2193bean%40googlegroups.com.