Parsons Software Security Consulting Blog

Etherpad 02 scripting to search and click on a link in Google

leave a comment »

I was on an Etherpad session with Dinis and Sarah from OWASP.   Below is the link to Etherpad.   Etherpad is a great tool for programmers and for us to help write scripts together and trouble shoot.

We used the free version.

Below are our Etherpad sessions from December, 3, 2010.

Dinis blogs about it on his blog.

Below is today’s 02 script.  Dinis is the original author but I tweaked it to do some shameless self promoting.

var ie = panel.add_IE().silent(true);
ie.disableFlashing(); // use this when developing the script to make it faster
Action<string> searchGoogle =
 (searchText)=> {"");
 searchText = searchText.line();       // here......  <----
 ie.button("Google Search").Click();
Action<string> clickOnLink =
 (linkToClick)=> {
 if (ie.hasLink(linkToClick));
 "Error: could not find link: {0}".error(linkToClick);

searchGoogle("Parsons Software Security Consulting, LLC");
clickOnLink("Parsons Software Security Consulting, LLC - Home");

return"Parsons Software Security Consulting, LLC - Home").click();

//using O2.XRules.Database.Utils.O2

This code opens Google.  Disables flashing to make the search faster.  Then searches for my company, Parsons Software Security Consulting, LLC and clicks on the first link then opening my company’s website.

There is the script. Feel free to email me at for comments.

Matt Parsons, CISSP, MSM,
Parsons Software Security Consulting, LLC
Securing the Internet one Application at a time.

Written by mparsons1980

December 4, 2010 at 4:05 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: