Post 9fUVncE5SSI0W8hHN2 by eldergoth@sfbubble.net
 (DIR) More posts by eldergoth@sfbubble.net
 (DIR) Post #9fUTG7wmoWqv8zVaoy by grainloom@cybre.space
       2019-02-04T11:57:42Z
       
       0 likes, 0 repeats
       
       alternatively, what would be really nice is to have an "throw an exception but then drop me in a REPL and give me the option of just ignoring the exception and resuming control flow" .... thingI've tried to cobble something like that together but I don't understand the intricacies of IPython to do it justice
       
 (DIR) Post #9fUTdR99b4L5LnPNDM by grainloom@cybre.space
       2019-02-04T12:02:01Z
       
       0 likes, 0 repeats
       
       I think Common Lisp has something like this but I don't know if it also has Selenium bindings (which is pretty much the only thing I use IPython for)
       
 (DIR) Post #9fUTld0tMPZiTHRwrg by ekaitz_zarraga@mastodon.social
       2019-02-04T12:03:29Z
       
       0 likes, 0 repeats
       
       @grainloom Use Clojure and you are done.
       
 (DIR) Post #9fUTmCrE5pEZdjCjnU by grainloom@cybre.space
       2019-02-04T12:03:35Z
       
       0 likes, 0 repeats
       
       hmmmm..... if a `raise` somehow saved the VM's state....  nah... who knows how much one would have to rewind to properly ignore the error....
       
 (DIR) Post #9fUTuggR5J8uSaCY0O by grainloom@cybre.space
       2019-02-04T12:05:08Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga it does seem to have WebDriver implementations but rn I wanna get this thing done so getting into a new language is not a good idea for thatbut the next rewrite might use Clojure
       
 (DIR) Post #9fUTyopUjuV2soPOfQ by ekaitz_zarraga@mastodon.social
       2019-02-04T12:05:52Z
       
       0 likes, 0 repeats
       
       @grainloom If you know python, common lisp and haskell i don't really think you are going to have any trouble with this.
       
 (DIR) Post #9fUU7Lv7aoK5pS6rNg by grainloom@cybre.space
       2019-02-04T12:07:26Z
       
       0 likes, 0 repeats
       
       what specifically happens is that sometimes I get a message on the uni app while it's gathering data and that causes a popup and obscures an element that the webdriver would have to click oni'd have to wrap every webdriver action if i wanted to ignore it..... although i might be able to work around it by force-clicking, ignoring visibility tests
       
 (DIR) Post #9fUUFqgT68jhYcJ6Cu by grainloom@cybre.space
       2019-02-04T12:08:57Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga sadly I don't know Common Lisp :blobsad:but I kinda need this data by like yesterday
       
 (DIR) Post #9fUUMbiP9MFP9xR3tg by ekaitz_zarraga@mastodon.social
       2019-02-04T12:10:11Z
       
       0 likes, 0 repeats
       
       @grainloom I don't neither. I thought you did because you were talking about it...Anyway I don't know haskell neither (I know nothing) and I'm fine with clojure.
       
 (DIR) Post #9fUUN94B9QGyb2sPuy by grainloom@cybre.space
       2019-02-04T12:10:17Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga so the plan is to get it do at least one full run so that I can assemble my courses and then be done with it for a few weeks(and then later i can rewrite it in something sensible)
       
 (DIR) Post #9fUUYq1llM7z1WKEJk by grainloom@cybre.space
       2019-02-04T12:12:23Z
       
       0 likes, 0 repeats
       
       @ekaitz_zarraga I've read about it and am interested in learning it, but I've never done anything in it.Hey that reminds me, I'm going on two 12 hour bus trips in the following days, do you have some good reads on Clojure? Especially stuff that I could read and maybe practice with offline? (although I think these buses have wifi.... but I'm not taking chances)
       
 (DIR) Post #9fUUxjCmGWkz6ULJCK by ekaitz_zarraga@mastodon.social
       2019-02-04T12:16:54Z
       
       0 likes, 0 repeats
       
       @grainloom I "learned" clojure with this book:https://www.braveclojure.com/foreword/I bought the physical version, but there's the online thing too. You can even download the whole thing or whatever.The book is really good.
       
 (DIR) Post #9fUVncE5SSI0W8hHN2 by eldergoth@sfbubble.net
       2019-02-04T12:26:15Z
       
       0 likes, 0 repeats
       
       @grainloom CL does have exactly that (and more) in its exception-handling system, but it's not something you'll pick up in a day.Clojure ditched that exception-handling, so IIUC it's level with Java (and Python) on that front.Good news, though: I just searched and found https://common-lisp.net/project/cl-selenium/ so yes, it does also have Selenium bindings.
       
 (DIR) Post #9fUcpwRZxYuHTn429w by dogjaw@shitposter.club
       2019-02-04T13:44:20.223588Z
       
       0 likes, 0 repeats
       
       @grainloom https://common-lisp.net/project/cl-selenium/https://github.com/TatriX/cl-selenium-webdriverGo wild