Skip to content

Commit 607bfe6

Browse files
[tours] Add initial tours to get started
1 parent 27d2e5e commit 607bfe6

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.tours/bazel.tour

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://aka.ms/codetour-schema",
3+
"title": "Bazel",
4+
"steps": [
5+
{
6+
"file": "WORKSPACE",
7+
"description": "This is the main file creating the Bazel Workspace for this repository",
8+
"line": 1
9+
},
10+
{
11+
"file": "WORKSPACE",
12+
"description": "These are the packages that support our rules and give us the extra functionality that we can use. There are a number of imported rules for different programming languages and extra features we need",
13+
"line": 11
14+
},
15+
{
16+
"file": "BUILD.bazel",
17+
"description": "These are aliases to some of the most common build targets. To build a target you can run `bazel build <alias>` e.g. `bazel build grid`",
18+
"line": 14
19+
}
20+
],
21+
"ref": "trunk"
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "https://aka.ms/codetour-schema",
3+
"title": "Building and Testing the Python Bindings",
4+
"steps": [
5+
{
6+
"file": "py/BUILD.bazel",
7+
"description": "Files, like this, can be found all over this repository and will have all the targets that we need. To access this file with bazel you will need to use bazel build|test|run //py:<targets below>",
8+
"line": 7
9+
},
10+
{
11+
"file": "py/BUILD.bazel",
12+
"description": "This is how we create the python library that will be used",
13+
"line": 69
14+
},
15+
{
16+
"file": "py/BUILD.bazel",
17+
"description": "This creates the Selenium wheel that is published. We can upload it with `twine`",
18+
"line": 110
19+
},
20+
{
21+
"file": "py/BUILD.bazel",
22+
"description": "This creates the targets we need when we want to use \"pinned browsers\". Using \"pinned browsers\" means bazel will download the necessary browser and the corresponding driver. To use this target you will do `bazel test //py:auto-<browser name> --//common:pin_browsers`",
23+
"line": 229
24+
},
25+
{
26+
"file": "py/BUILD.bazel",
27+
"description": "If you want to use targets that have the installed browser and the driver on the $PATH environment variables",
28+
"line": 255
29+
},
30+
{
31+
"file": "py/BUILD.bazel",
32+
"description": "This target is called from other targets and will generate the CDP libraries that we use within the Selenium Python Bindings",
33+
"line": 186
34+
},
35+
{
36+
"file": "py/BUILD.bazel",
37+
"description": "These are the dependencies for building and testing",
38+
"line": 17
39+
},
40+
{
41+
"file": "py/BUILD.bazel",
42+
"description": "Below are the JavaScript atoms we use for certain features like checking if an element if visible.",
43+
"line": 38
44+
}
45+
],
46+
"ref": "trunk"
47+
}

0 commit comments

Comments
 (0)