#NOTE : Version is Unsable as Updating Internal Structure
Selebot is the selenium TestNG framework with the various build in functionality and seleniumUtility.It's designed with the vision of rapidly selenium script generation.
1. Java
2. Maven
- Download the repo
- Maven will automatically download all the dependency
.
└── src
├── resources # Resource files and general configuration files
│ ├── general.json # General configuration
│ └── ObjectRepo # Json files with the locator details
│ └── login.json
└── test
└── java
├── config # configuration and seleniumUtility
│ ├── General
│ │ ├── ExcelFileConfig.java # Excel file realated seleniumUtility
│ │ ├── JsonFileConfig.java # JSON file realated seleniumUtility
│ │ ├── Methods.java # Selenium and General operation method
│ │ ├── PerformAction.java # Selenium actions
│ │ └── Verify.java # Assertation
│ └── SeleniumConfig # Selenium Configuration
│ ├── AbstractPage.java
│ └── BrowserConfig.java # Browser configuration
└── tests # Test
├── LoginModule # Module
│ └── tests.java # TesNG Test Methods
│ ├── Steps.java # Steps logic
│ └── Verify.java # Assertation
For e.g
Add locator details in following format
"Element name": {
"locatorType" : "",
"locatorValue" : "",
"default" : "",
"textType" : "",
"auto" : boolean
},
Last three properties are used for entering text into textfields
For example
"password": {
"locatorType" : "xpath",
"locatorValue" : ".//input[@id='authPassword']",
"default" : "123456",
"textType" : "password",
"auto" : false
},
Add TestNG Test and steps
performAction.click("Json file Name", "locator name");
@Test
public void Login() {
performAction.click("login", "loginbutton");
performAction.sendKeys(currentFileName, "email");
performAction.pause(3);
}
