Selenium

Remote Control of a Browser (e.g. for end-to-end testing of webapps, web scraping)

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:

  1. A program written using the Selenium API (it may be written in Java, JavaScript, Python, Ruby, or any language that has a Selenium API)
  2. A selenium-driver which is a piece of software that sits between your program and the web browser.
    • See: </topics/selenium_driver>

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

Resources

Related topics: