Giter VIP home page Giter VIP logo

po-manager's Introduction

Why PO-Manager are useful?

PO-Manager provides the capability to recognize webelements and convert them to the page objects and act on it. It can save tons of effect to create/maintain your locator files and also speed up your automation.

Installation:

Search PO-Manager in vscode Extenstion Marketplace and install it.

VsCode-Extension

Prerequisite:

Get Chrome installed and chromedriver located in the PATH

  • Open the terminal and run chromedriver to check if chromedriver works good.

chromedriver

-Before interact with the browser, you need to start a webdriver browser session.

StartBrowser

Add and Update Elements

Now identifying elements in web page and writing xpath became easy by using Add Element and Update Element function.

Add Element :

Go to the particular locator.json file or create a new file and right click on the file, click on Add Element and select the element in the UI. The element object is getting generated automatically in .json file.

AddElement

Add Elements :

It is same as Add Element but here we can select multiple elements at once by selecting a area of the elements in UI.

AddElements

Update Element:

If the locator path is updated in html by developer. The element can’t be identified by highlighting it then we need to update the element path in locator file. Here is the solution for this. Right click on the element and click update element and select the element which need to be updated

UpdateLocator

Whenever new locators are added to .json file refresh the LOCATORS. The newly added locator will be displayed in LOCATORS list Highlight Element : Whenever element is visible and exists user can highlight the element. Highlights

Debug with the elements:

There are multiple functions as listed below when user right click on the element object E.g :

  • Clear
  • Click
  • getText
  • sendKey etc

This will call original selenium commands and you can use this to check if selenium actions work for the defined element.

PAGE VIEW:

Also it provide a PAGE VIEWS in the left explorer panel. The view will load all the page-object files for you to navigate through them quickly.

  • ps: please go to vscode setting -> Extentions -> PO-Manager and update the Locator Folder value to your project folder which save all the locators.

PageViews

po-manager's People

Contributors

zzhengjian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.