Hacker Newsnew | past | comments | ask | show | jobs | submit | squid_ca's commentslogin

It’s better than the alternative :)

I probably missed it in the documentation, but how do I automate the browser with Bombadil? How do I get it to login to my app so I can test authenticated pages?

Edit: as others have said, I am having trouble figuring out how to make this work and understanding how to use it, more practical examples of that would be helpful. Looking forward to using this. Thank you!


One smartass way to answer that for the general case is: you don't. And I mean that in the same sense as "you don't write example based tests using a PBT framework". You supply independent actions through generators and have it apply them "chaotically", not strictly in sensible sequences.

That said, for things like auth, you need to do some fixed steps to get anywhere at all. I haven't added support for this yet, but as I'm envisioning it, you'd either:

a) authenticate the browser using headers or cookies that you inject into the Bombadil browser, or b) use a "custom action" (essentially a stringifed JS function) that'd perform your particular steps

Or what you could do now: add preconditions to your actions so that they'd necessarily fill out the form before anything else could be done.

Another thing we might need in Bombadil is secrets, but for now I think it's fine to inject test credentials that are plain visible text.

Please let me know if you try it out and if you need any help!


Thank you for replying, I appreciate it! I’ll reach out when I get in trouble ;)

Off-topic: After visiting a Reddit link via Hacker News on my phone, my Reddit layout is unusable. How do I get out of old Reddit and back to something usable?

Related: why does HN always link to old.reddit?


Because the "new" layout is awful.


Yes, I agree, but the old one is unusable on mobile, and visiting old.reddit.com forces me to keep using it until I logout and login again, which is also awful


The new layout is awful on desktop. Change "old" to "www" and you'll be all set on mobile.


That doesn’t work, but that’s not your fault! I think it’s setting some cookie or something, which makes this annoying to deal with. Anyway, thanks for the reply


The option to change it is buried in the settings.


You’re absolutely right!


Not just right - genius!


And power lines. I seem to recall reading that some of the health problems may have come from Agent Orange, which was used to clear the power corridor in the 50s


Economics isn’t a science, it’s a social science


I think you mean economics isn't a physical science, since social science is still a branch of science.


krona says "...since social science is still a branch of science."

My experience has been that most social scientists say this is true but most physical scientists say it is false.


Edit:replied to wrong post


Or, say, a number one search provider ;)


That makes sense, given the description of how it works, but the article distinctly mentions getting this effect from gaming headphones so...

Anyway, I went and tried again with just my laptop (based on the person above effusing about it). Again, for me, I'm not hearing anything special, and nothing "3D" about the sounds, other than some left-right shifts. And I guess the music is in front of me, since that's where my laptop is ;)


I agree. The article mentions bits going around their head, or in the front-right. I hear things on the left, and things on the right. And stuff that appears on the opposite side of where the article mentions them. I’m listening on Spotify, maybe all that stuff is stripped out?


Are you sure you don't have your left/right channels swapped? You don't know how many PCs I've run into with their speakers wired up backwards...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: