Skip to main content

Posts

Showing posts with the label Selenium WebDriver

Top 5 Selenium Webdriver Coding Tips to Improve Quality

SeleniumWebdriver is a powerful automation tool for testing web applications . It’s an open source library bundled with a rich set of features. Using it for testing a website is just like simulating the actions of a real user. All these abilities together make it a perfect tool for automation. But you need proper guidance to get the best out of it. In this blog post, we’ve assembled some of the best and Top 5 Selenium Webdriver coding tips for software testers. Tip-1: Best Method To Create Webdriver Instance. It’s one of the most common Selenium Webdriver coding tips which you can’t avoid to use. 1.1- Use the <Factory> design pattern to create objects based on browser type. 1.2- Extend the below code or use it as is in your projects. public class DriverFactory { private WebDriver driver = null;     public static WebDriver getBrowser(String browserType) {         if (dri...

Selenium Web Driver vs Selenium RC - Important differences need to know

One of the important question which hits mostly everyone in testing field. But guys be ready this is gonna be a kicker! This is not an official page which splits the page into two to show the difference between them instead let’s have a detailed study. The best part is here; The remaining part of the article will clear all your doubts between Selenium Web Driver and Selenium RC. Where the difference lies? There are many differences between these two, but the major difference lies in their architecture . How they both interacting with the browser is the main factor here, I hope you checked my previous tutorial about Selenium Web Driver, If not please click the link here Selenium Web Driver Architecture!! Here’s is the point; SeleniumWebDriver interacts with the browser directly. It doesn’t require any server to communicate with the browser instead it uses the browser’s native support for automation. Ex: For running a test in Firefox it will d...