Selenium Page Object Model Code Generator


Page Object pattern provides its host advantages like script maintainability, script legibility and clarity but at the same time, it needs too much of routine and repetitive coding effort in creating page objects.

Selenium Code Generator automatically generates the code for Page Objects. It reduces hours of coding effort to minutes.

Features:
  • Generates code for Page Objects
  • Generates a method which is used to fill the form for a given page
  • Generates code for a method which captures error messages from a page
  • Generates a method which tests Field level validations of a given page (using Data Provider)
  • Generates the Data Provider for the Field Level Validation method
Selenium Page Object Generator Chrome Extension
Who wants to works on the Page Object model framework, 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 currently supports 3 different targets: Java, C#, and Robot Framework.
Browser Supported: Chrome 40 or later
Selenium Page Object Generator is an essential tool to improve your workflow. It will generate Page Object Model on active Chrome tab with a single click,
You can search for this extension in Chrome Browser.
Type below url in Chrome browser address bar
https://chrome.google.com/webstore/detail/selenium-page-object-gene/epgmnmcjdhapiojbohkkemlfkegmbebb


Screen looks like
image

Then click on “ADDED TO CHROME“ button

image

Once we add this extension to Chrome, we will see theextension icon in Right top corner in chrome browser

image

1) Launch Chrome Browser
2) Open the Application (Google.com)
3) Click On Extension of Page Object Generator

image

1) We need to Select Language in Target(JAVA,C# or RobotFrameWork)
2) Give Page name (here we given googlesearchpage) which generates the page
3) click on Generate button
4) This creates .java file with the name which we give in the Page Name field with all the controls identified and basic methods written.

image

Note : Java file will be stored in your downloaded folder

Comments

Post a Comment