Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neonidian/selenium-java-page-object-model
Selenium Page Object Modelling with Java
https://github.com/neonidian/selenium-java-page-object-model
java java-selenium page-object-framework page-object-model selenium selenium-java selenium-java-template
Last synced: 13 days ago
JSON representation
Selenium Page Object Modelling with Java
- Host: GitHub
- URL: https://github.com/neonidian/selenium-java-page-object-model
- Owner: neonidian
- Created: 2019-04-30T13:08:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T16:08:48.000Z (over 3 years ago)
- Last Synced: 2024-10-22T17:35:03.343Z (2 months ago)
- Topics: java, java-selenium, page-object-framework, page-object-model, selenium, selenium-java, selenium-java-template
- Language: Java
- Homepage:
- Size: 2.85 MB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Page Object Model With Java
Selenium project uses page object modelling where tests, pages(with HTML elements defined) and selenium framework reside
in their respective packages## Running the tests
* [Gradle](https://gradle.org/) is used as the build tool
* Pre-requisite: Gradle, Java and firefox browser installed (Other browsers can also be configured)
* To run the tests, open a command line and go to the project directory. Use `./gradlew`(for Linux and Mac) or `gradlew`(for Windows) in the command line
* Test report is generated in build/reports/tests/test/index.html
## Java Compatability
* Has been tested with Java 8 (OpenJDK 8) and Java 11 (OpenJDK 11)
## Structure
* The projects follows the standard java convention. So, since the project is about tests, all the tests are located
in src/test and there is no src/main* The package `se.ica.framework` has selenium actions like defining the browser, the actions that can be done in a page
* The package `se.ica.pages` has functionality for a specific web page of a website
* The package `se.ica.tests` has the tests
* Note that the assertions are located in a [class](src/test/java/se/ica/framework/SeleniumActions.java)
which is not the class where [tests](src/test/java/se/ica/tests/OnlinePageTest.java) are present -> something different from the usual convention## Website Used
* This project uses https://www.ica.se, a Swedish retail company that provides online and store shopping