Professional Documents
Culture Documents
Surendran Ethiraj
Xpanxion International Pvt. Ltd
Agenda
Selenium An Intro Selenium Tools Suite Selenium RC (Versus) Selenium WebDriver Whats new? - Selenium WebDriver Advanced concepts in WebDriver Demo
What is Selenium?
Selenium is a set of different software tools for automating web applications. Can be used for most of the browser/platform combinations. Supports many languages including Ruby, Python, Java etc. Open source and free.
Selenium RC
Selenium WebDriver
Advantages of WebDriver
One should use WebDriver when requiring improved support for * Multi-browser testing including improved functionality for browsers not well-supported by Selenium-1.0. * Handling multiple frames, multiple browser windows, popups, and alerts. * Page navigation. * Drag-and-drop. * AJAX-based UI elements.
Advancing in WebDriver
Using Java/JQuery scripts Retrieving Java script errors Identifying broken links Handling Wait in WebDriver Reporting Server-client responses Reporting Page load timings Cross browser testing
8
Other Browsers:
For Other Browsers: We need to add the below code in our application and use JavaScript query to retrieving the details
<script type="text/javascript"> window.onerror=function(msg){ var previous_errors = document.getElementsByTagName("body")[0].getAttr ibute("JSError"); $("body").attr("JSError",previous_errors + '\n' + msg ); } </script>
Broken Links
SikuliWebDriver
SikuliFirefoxDriver extends Selenium's FirefoxDriver by adding Sikuli's image search capability. It is useful for automating interactions with highly visual interfaces such as Google Map.
Testing is an infinite process of comparing the invisible to the ambiguous in order to avoid the unthinkable happening to the anonymous. - James Bach