Selenium Page Object Generator Chrome Extension

Selenium Page Object Generator Chrome Extension

This chrome extension helps in creating the page object class for Selenium WebDriver with locators for all available elements and methods to access them. It uses a template to generate the class which can be customized from the settings page of the extension.



Selenium Page Object Generator is a good tool to improve the workflow. It will generate Page Object Model on active Chrome tab with a single click, provided that all the options and template are configured. The generated Page Object Model can be saved to pre-configured Chrome download folder.

It currently supports 3 different targets: Java, C#, and Robot Framework.

You can search for this extension in Chrome Browser. PageObjectGenerator Extension



Once we add this extension to Chrome, we can easily generate Page Objects for the applications which we need to automate.

Usage:
  1. Launch Chrome browser and the extension can be found at the top right hand corner.
  2. Open the application(Lets say facebook.com)
  3. Now click on the extension of the Page Object Generator.
  4. We can select the intended language (Java or C# or Robot Framework)
  5. We can give the Page Name for which it generates the page for us.
  6. Click on Generate and it does the job.
  7. This creates .java file with the name which we give in the PageName field with all the controls identified and basic methods written.


For More blogs keep yourself tuned!

Comments

Popular posts from this blog

How to inspect disappearing element in a browser:

Implicit vs Explicit vs Fluent And Sleep in Selenium