Skip to content
Krishnan Mahadevan edited this page Nov 10, 2022 · 1 revision

Setup Selenium codebase in IntelliJ

Install bazel using brew install bazel

Install the Bazel IntelliJ plugin

image

Plugin home page: https://plugins.jetbrains.com/plugin/8609-bazel

This is how my bazel settings look like in IntelliJ (To setup buildifier run brew install buildifier)

image

Now click Import Bazel project button

image

Choose the home directory for bazel in the next screen (The directory where the WORKSPACE file exists)

image

In the next screen choose Generate from BUILD file and choose java/BUILD.bazel

image

The last screen which contains the create button should look like this

image

Now IntelliJ is going to spend sometime in setting up bazel build etc.,

Just to ensure that all is well, trigger a bazel sync explicitly by choosing Bazel > Sync > Sync Project with BUILD files.

That should do it. You should now be ready to go with working with the selenium codebase within IntelliJ.

Clone this wiki locally