Selenium is a software framework that allows you to do “remote control” of a web browser (e.g. Chrome, Firefox) from a program written in Java, Python, etc.
To use selenium, you need two things:
- A program written using the Selenium API (it may be written in Java, JavaScript, Python, Ruby, or any language that has a Selenium API)
- A selenium-driver which is a piece of software that sits between your program and the web browser.
Repo with sample code to test a web app using Java
https://github.com/ucsb-cs56-pconrad/cs56-selenium-java-demo
Look in the file src/test/java/edu/ucsb/cs56/pconrad/SparkDemo01Test.java
Repo with sample code to test a web app using Java
https://github.com/ucsb-cs56-pconrad/cs56-selenium-java-demo
Look in the file src/test/java/edu/ucsb/cs56/pconrad/SparkDemo01Test.java