Chrome Automation Using API


Chrome Automation Using API in SoapUI

Objective - Automating Chrome using SoapUI (Nope, not using Selenium in groovy)

Introduction - Selenium is world known for automating web browsers but do you know its architecture uses REST APIs to automate it? So, if it uses Rest API, can we automate it using SoapUI or Postman tool? Well, the shocking answer is Yes (If you aren't shocked, I was, when I learnt this.).


Tools used - SoapUI (Can be transformed to Postman)

Project Overview - 

Prerequisite - Chromium driver executable file should be downloaded.
Note: The executable file should be kept in the same path as the project. If not, kindly modify the "chrome.bat" file. The logs are captured and kept in the file chrome.log. 

This SoapUI project has the following steps 

  • Groovy Script:  A few line of codes in groovy to start the chrome driver. The script first of this step needs to be modified to your "chrome.bat"path.
  • REST Steps: Rest API calls to open the browser, open a link, find an element, enter keys, take screenshot of an element, and close the browser.
  • Property Transfer: Property transfer of session id and element id to Test Case. These steps help us to automate the browser without any manual intervention.

SOAPUI - Project Overview

Outcome - A simple project in SoapUI that automates the browser without using Selenium and just APIs. Cool, isn't it?

Feel free to contact me at  - sumeetagrawal840@gmail.com

Comments

Popular posts from this blog

Report Generation in SoapUI using Extent Report