Category: Others

Taking screenshots in Selenium with Ruby

Find the below that can be used to take screenshots in Selenium when you writing your Automated code in Ruby   require ‘rubygems’ require ‘selenium-webdriver’ driver = Selenium::WebDriver.for :ie driver.get “https://www.google.com” //This can be...

Taking screenshots in Selenium with Javascript

Using the below code we can even take screenshots with Javascript and the most important thing is this Javascript can be executed by any language using the Javascript executor   //Driver refers to Selenium...

Closing a Browser Window using different methods

Generally we use methods like driver.quit() or driver.close() to close the browser window.But sometimes it’s better to use other methods like actions which are available //Using actions instead of driver.quit Actions action = new...

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!