Q:

what is pom

Pom basically Creating java classes for the each page of our application,
and storing related webelements, and methods in their respective classes.
    
        - Advantages of POM =
        - Readable
        - Re-usable
        - Easy maintanance 
        - Less code/Less repetation 
        - Keeps our code structure
        
HOW I CREATE POM =  
#1-I Create constructor, and pass PageFactory.initElements(objectOfClass, Driver)
#2- I use @FindBy annotation to locate web elements
            - FindBy annotation comes from Selenium.
0

New to Communities?

Join the community