Skip to content

rahulrathore44/WebDriverElementLocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#WebDriver Element Locator

Automated approach to extract object properties. The script extracts the web element locator, By going to each page and validating the locator is unique or not. If the locator is unique then it is saved in Csv/Excel/Json file.

It also generate the Page Object Model class file

List of Urls must be specified in the config.properties file:

    Website1=https://www.linkedin.com/
    Website2=http://automationpractice.com/index.php
    Website3=http://newtours.demoaut.com/
    
    #Type - Excel,Csv,Json,POM
    Type=Json

To see this whole thing running simply checkout this project and run this command:

mvn clean generate-sources install

The script creates Csv/Excel/Json file, POM class file with name as title of the webpage

Page Object Model Class File

Pom

Comma separated file

Csv

Excel file

Excel

Json file

Json