FlexMonkium – Selenium IDE plugin for FlexMonkey

FlexMonkium is a free Selenium IDE plugin for FlexMonkey that is used in recording and playback to Selenium. With FlexMonkium, Flex recording and playback is seamlessly interleaved with native Selenium recording and playback so you can easily automate the testing of hybrid web applications that mix html and Javascript with Flex. In addition to creating and running Flex tests inside the Selenium IDE, you can export your hybrid testing scripts as JUnit 4 tests that run with Selenium-RC to easily enable automated testing and continuous integration.
For more info check http://www.gorillalogic.com/flexmonkium

Selenium RC Vs. Webdriver

Selenium uses JavaScript to automate web pages. This lets it interact very tightly with web content, and was one of the first automation tools to support Ajax and other heavily dynamic pages. However, this also means Selenium runs inside the JavaScript sandbox. This means you need to run the Selenium-RC server to get around the same-origin policy, which can sometimes cause issues with browser setup.

WebDriver on the other hand uses native automation from each language. While this means it takes longer to support new browsers/languages, it does offer a much closer ‘feel’ to the browser. If you’re happy with WebDriver, stick with it, it’s the future. There are limitations and bugs right now, but if they’re not stopping you, go for it.

Selenium Benefits over WebDriver
* Supports many browsers and many languages, WebDriver needs native implementations for each new languagte/browser combo.
* Very mature and complete API
* Currently (Sept 2010) supports JavaScript alerts and confirms better

Benefits of WebDriver Compared to Selenium
* Native automation faster and a little less prone to error and browser configuration
* Does not Requires Selenium-RC Server to be running
* Access to headlessHTMLUnit can allow really fast tests
* Great API

How to use selenium to check for google analytics on a web page

I have used xpath to verify if a particular string is available on the web page. Using the same concept I am now able to verify if google analytics code is available on the web page.
Here is the example:
Say my google analytics code is something like this:
[JavaScript]script type=“text/javascript”
try {
var pageTracker = _gat._getTracker(“UA-222222-3”);
pageTracker._trackPageview();
} catch(err) {}script
[/JavaScript]
The xpath for that is //script[@type=”text/javascript”][contains(text(), ‘UA-222222-3′)]
Then you use verifyElementPresent in selenium. I hope this will be useful for you all.
[html]
<tr>
<td>verifyElementPresent</td>
<td>//script[@type=’text/javascript’][contains(text(), ‘UA-222222-3’)]</td>
<td></td>
</tr>
[/html]
Submitted by Puddupakkam Pavandeep