I have been using Titanium Desktop for a while now at work, and am not at all impressed with the implementation or stability of the product and wouldn't want to see it being used in any serious project. HOWEVER, it is a brilliant concept which if done well can be humongously successful.
Here is where Titanium comes in. It doesn't have the sandboxing rules that normal browsers have, so you can load pretty much any page in a Titanium IFrame and do pretty much anything you want with it!!!!
I have given here an example of using Titanium to search for some text on Duck Duck Go.
To run the example, start Titanium Desktop as kboot --query "Your Search String"
Update: Here is a video showing how the automation works.