Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/java/AGENTS.md
4506 views

Code location

  • Java Bindings: java/src/, java/test/

  • Grid Server: java/src/org/openqa/selenium/grid/

Common commands

  • Build: bazel build //java/...

  • Build Grid: bazel build grid

Testing

See java/TESTING.md

Code conventions

Logging

import java.util.logging.Logger; private static final Logger LOG = Logger.getLogger(MyClass.class.getName()); LOG.warning("actionable: something needs attention"); LOG.info("useful: server started on port 4444"); LOG.fine("diagnostic: request details for debugging");

Deprecation

@Deprecated(forRemoval = true) public void legacyMethod() { }

Documentation

Use Javadoc for public APIs:

/** * Brief description. * * @param name description * @return description * @throws ExceptionType when condition */