Thursday, 6 September 2012

What is Selenium?


What is Selenium?

Selenium is the most widely used open source automated functional testing tools in the market today. It is composed of essential components like Selenium IDE, Selenium WebDriver, Selenium RemoteControl and Selenium Grid.
->Javascript framework that runs in your web-browser
->Works anywhere Javascript is supported
->Hooks for many other languages
->Java, Ruby, Python
->Can simulate a user navigating through pages and then assert for specific marks on the pages
->All you need to really know is HTML to start using it right away
Where Can u get it?

  • You can use Selenium-Core and customize everything 
  • But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test cases
  • You can record how an app is being used and then play back those recordings followed by asserts
  • Get everything at: www.openqa.org/selenium/

How Selenium Works internally?(Architecture)



Thursday, 24 May 2012

Taking screenshots in selenium webdriver


File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);//take the screenshots

FileUtils.copyFile(scrFile, new File("absolutepath\\filename.format"));