Posts

Showing posts with the label selenium

Run geckodriver before launching the browser

  Inorder to launch empty firefox browser,just create a object to browser class,it automatically launches a browser,bcoz constructor has the code to launch empty browser. get() is used to navigate to any web application URL,but URL should start with "http:" or "https:" Note: Webdriver internally uses http or https protocol for browser communication. Example as below: import org.openqa.selenium.firefox.firefoxDriver; public class SampleFirstTest {               System.setProperty("webDriver.gecko.Driver",c://....path u should give");              FirefoxDriver driver=new FirefoxDriver();              driver.get("https://facebook.com");    } Webdriver basic Browser operation:      get()    navigate().to()    navigate().refresh();    navigate().back()    navigate().forward()    f...

Introduction to Selenium

Image
Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. Different languages support by selenium Java PHP Perl Python C# ObjectC Ruby Javascript Selenium Versions Selenium IDE ( I ntegrated D evelopment E nvironment) Selenium RC ( R emote C ontrol) Selenium Webdriver Latest version is  Selenium Webdriver Selenium IDE  Implemented by shinya from JAPAN  Released in 2006  Functional  Automation tool supports only webapplications It is UI based and record/playback tool It is implemented plugin or add-on for the firefox browser Supports only firefox browser Selenium RC Implemented  by jsonhuggins from thoughtwork company Released in 2004 First automation open-source tool in the market It is Collections of javascript's. It's not a UI based, it doen't contain record/playback feature It Supports all browser and platform's Selenium Webdriver I...

Introduction to Automation

What is Automation A process of converting any manual test case into automation test scripts using some automation tools with scripting or programming language is called automation. Automation tools QTP [VB] - Scripting language Selenium : IDE[HTML] Webdriver : [JAVA/.NET/Perl/python] Commerical tools - Paid/Licenced based tools (QTP) OpenSource - Source code is avaliable in internet (webdriver) Freewar : Source Code is not avaliable but is freely avalible in internet (Playstore, SOAP UI) Types of Applications:   Web Applications: Any application uses browser or URL to open like GMail,FB,Flipkar  Standalone Applications: The Application which doesn't uses browser or URL to open like           M.S.Excel, Notepad Mobile Applications:  The Application which opens through Mobile. Under mobile Applications we have Native:Default applications available in Mobile ex: Contacts, Message.  Web: Application...