Update README.md

This commit is contained in:
Ramon Caballero 2024-07-27 15:55:32 +01:00
parent 05b089f331
commit 95e8debdda
1 changed files with 7 additions and 6 deletions

View File

@ -1,16 +1,17 @@
# Page Object Model
Several examples demonstrating some features of Selenium WebDriver using Java.
Examples from [Selenium WebDriver](https://gitea.ramoncaballero.dev/mon/SeleniumWebDriver) adopting Page Object Model.
Each class has its own main method, so they are meant to be executed individually to showcase different Selenium features.
Each test class has its own main method, so they are meant to be executed individually to showcase different Selenium features.
## Run on Eclipse
1. **Package Explorer**
2. Select the `.java` file that you want to run.
3. Contextual menu > **Run As** > **Java Application**
2. Browse to **src/tests** package.
3. Select the `.java` file that you want to run.
4. Contextual menu > **Run As** > **Java Application**
## Notes
- `GettingStarted.java` needs to be run with `-ea` or `-enableasserts` as arguments.
- `InputsWithUIDialogs.java` needs the name of a valid file in your system.
- `GettingStartedTests.java` needs to be run with `-ea` or `-enableasserts` as arguments.
- `InputsWithUIDialogsTests.java` needs the name of a valid file in your system.