News for hackers. Stuff that matters.
Re:RobotJS – Node.js Desktop Automation by noinsight on Thursday July 30, 2015 @10:31AM (#9975195)
Selenium can be used for browser automation.
Re:RobotJS – Node.js Desktop Automation by hugs on Thursday July 30, 2015 @10:41AM (#9975260)
Yup, Selenium has been around since 2004, and is now the basis of the W3C standard [1] for browser automation. Most browser vendors now officially support the spec. (Disclosure: I started the Selenium project. AMA.)

[1]: https://w3c.github.io/webdriver/webdriver-spec.html

Re:RobotJS – Node.js Desktop Automation by r14n on Friday July 31, 2015 @12:27PM (#9982662)
I ran into a problem with the automation project I was working on when I tried using Selenium. I was trying to print (shipping labels from Amazon) and Selenium (at least Chrome webdriver) can't see the print dialog :( Any ideas?
Re:RobotJS – Node.js Desktop Automation by Abundnce10 on Thursday July 30, 2015 @12:17PM (#9976003)
I've used Selenium a bunch the last couple months to automate daily/hourly jobs to pull data from 3rd party UIs that don't offer an API. I couldn't imagine not having a tool like Selenium at my disposal!
Re:RobotJS – Node.js Desktop Automation by SchizoDuckie on Thursday July 30, 2015 @12:23PM (#9976040)
Pro tip: create a chrome extension with permissions on all http:// and https:// sites, or run it through Node-Webkit/nw.io, then you can use the generic DOMParser and querySelectorAll with a pretty fluent interface on any site you can imagine.

example here: https://github.com/SchizoDuckie/DuckieTV/blob/angular/js/uti...

Re:RobotJS – Node.js Desktop Automation by vaviloff on Thursday July 30, 2015 @04:29PM (#9977812)
> or run it through Node-Webkit/nw.io

That's quite interesting! I thought node-webkit isn't suitable (yet) for such purpose. Could you go into more detail on how to do parsing/automation external sites with it?

Re:RobotJS – Node.js Desktop Automation by SchizoDuckie on Friday July 31, 2015 @06:57PM (#9984996)
It's very suitable! (I'm using it in DuckieTV in production, works like a charm!)

Basically, you can use xmlhttp to fetch any webpage becaused of relaxed restrictions. then use DOMParser (a built-in browser component, that you can even shim) to create a virtual DOM of that xmlhttp result, and execute regular querySelector and querySelectorAlll queries on that :)