#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
},
Property | Description |
---|---|
Element name | variable name |
locatorType | any type of locator that is supported by selenium like xpath,classname,tagname,name etc. |
locatorValue | value of the locator |
auto : true | Enter data automatically in textfield based on the textType |
textType | type of data, want to entered into text fields |
default | enter this data when auto mode is false |
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);
}