I need my program to run and execute a few lines of Java code, then access and execute commands from an external file (e.g. located on the desktop) and then continue with the code inside the program.
Is that even possible? I'm using Selenium. The program starts the browser, and I want users to edit the script file in order to meet their needs. The basic program behavior should stay the same though.
For Example:
- Start browser (program) -->
- getURL (script) -->
- findElement.By.id (script), click() (script) -->
- close broser (program)