[Owasp-o2-platform] Using O2 for Browser Automation

dinis cruz dinis.cruz at owasp.org
Fri Oct 1 11:25:01 EDT 2010


On the topic of O2's support for IE Browser Automation (via the WatiN API)

Here is an O2 script that shows a simple Google search query

panel.clear();
var ie = panel.add_IE().silent(true);

ie.open("http://www.google.com");
ie.field("q").flash().value("OWASP O2 Platform").flash();
ie.button("Google Search").scrollIntoView().flash().click();
return ie.fields();

//O2File:WatiN_IE_ExtensionMethods.cs
//using O2.XRules.Database.Utils.O2
//O2Ref:WatiN.Core.1x.dll

The latest version of O2 has a new demo file (located at C:\O2
\O2Scripts_Database\_
Scripts\_Demos\Browser Automation_IE Demos.h2) which should help new users
to get their head around WatiN's API (if you are using the ClickOnce version
this file should be synced up automatically the next time you start it)

To see this in action, check out this video
http://s3.amazonaws.com/O2_Videos/O2Platform
- Browser Automation - IE Demos - First
Poc.avi<http://s3.amazonaws.com/O2_Videos/O2Platform%20-%20Browser%20Automation%20-%20IE%20Demos%20-%20First%20Poc.avi>(note:
all animations on that video are scripted (i.e. the new version of
O2 also supports the full Automation of Windows Client apps :) ))

Let me know if you have problems running this

Dinis Cruz

Blog: http://diniscruz.blogspot.com
Twitter: http://twitter.com/DinisCruz
Web: http://www.owasp.org/index.php/O2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/owasp-o2-platform/attachments/20101001/11de9773/attachment.html 


More information about the Owasp-o2-platform mailing list