File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -122,3 +122,28 @@ provide a relative or absolute path to Selenium server jar file.
122
122
Then, the command will look something like this::
123
123
124
124
/path/to/java -jar /path/to/selenium-server-standalone-2.x.x.jar
125
+
126
+
127
+ Installing from Git sources
128
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
129
+
130
+ To build Selenium Python from the source code, clone `the official repository
131
+ <https://github.com/SeleniumHQ/selenium.git> `_. It contains the source code for
132
+ all official Selenium flavors, like Python, Java, Ruby and others. The Python
133
+ code resides in the ``/py `` directory. To build, you will also need the `Bazel
134
+ <https://www.bazel.build> `_ build system.
135
+
136
+ .. note ::
137
+
138
+ Currently, as Selenium gets near to the 4.0.0 release, it requires Bazel 3.2.0
139
+ (`Install instructions <https://docs.bazel.build/versions/3.2.0/install.html >`_),
140
+ even though 3.3.0 is already available.
141
+
142
+ To build a Wheel from the sources, run the following command from the repository
143
+ root::
144
+
145
+ bazel //py:selenium-wheel
146
+
147
+ This command will prepare the source code with some preprocessed JS files needed
148
+ by some webdriver modules and build the ``.whl `` package inside the
149
+ ``./bazel-bin/py/ `` directory. Afterwards, you can use ``pip `` to install it.
You can’t perform that action at this time.
0 commit comments