You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Step 6. Give the "jenkins" user sudo access (See [jenkins_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/jenkins_permissions.sh) for details)
80
80
81
-
```bash
81
+
```zsh
82
82
./jenkins_permissions.sh
83
83
```
84
84
85
85
### Step 7. Become the "jenkins" user and enter a "bash" shell
86
86
87
-
```bash
87
+
```zsh
88
88
sudo su jenkins
89
89
bash
90
90
```
91
91
92
92
### Step 8. Install dependencies (See [Linuxfile.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/Linuxfile.sh) for details)
93
93
94
-
```bash
94
+
```zsh
95
95
./Linuxfile.sh
96
96
```
97
97
98
98
### Step 9. Start up the headless browser display mechanism: Xvfb (See [Xvfb_launcher.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/Xvfb_launcher.sh) for details)
99
99
100
-
```bash
100
+
```zsh
101
101
./Xvfb_launcher.sh
102
102
```
103
103
104
104
### Step 10. Go to the SeleniumBase directory
105
105
106
-
```bash
106
+
```zsh
107
107
cd /SeleniumBase
108
108
```
109
109
110
110
### Step 11. Install the [requirements](https://github.com/seleniumbase/SeleniumBase/blob/master/requirements.txt) for SeleniumBase
111
111
112
-
```bash
112
+
```zsh
113
113
sudo pip install -r requirements.txt --upgrade
114
114
```
115
115
116
116
### Step 12. Install SeleniumBase (Make sure you already installed the requirements above)
#### Step 6. Give Jenkins (aka "tomcat" user) sudo access (See [tomcat_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/tomcat_permissions.sh) for details)
43
43
44
-
```bash
44
+
```zsh
45
45
./tomcat_permissions.sh
46
46
```
47
47
48
48
#### Step 7. Become "tomcat" (the Jenkins user) and enter a "bash" shell
49
49
50
-
```bash
50
+
```zsh
51
51
sudo su tomcat
52
52
bash
53
53
```
54
54
55
55
#### Step 8. Install dependencies (See [Linuxfile.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/Linuxfile.sh) for details)
56
56
57
-
```bash
57
+
```zsh
58
58
./Linuxfile.sh
59
59
```
60
60
61
61
#### Step 9. Start up the headless browser display mechanism: Xvfb (See [Xvfb_launcher.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/Xvfb_launcher.sh) for details)
62
62
63
-
```bash
63
+
```zsh
64
64
./Xvfb_launcher.sh
65
65
```
66
66
67
67
#### Step 10. Go to the SeleniumBase directory
68
68
69
-
```bash
69
+
```zsh
70
70
cd /SeleniumBase
71
71
```
72
72
73
73
#### Step 11. Install the [requirements](https://github.com/seleniumbase/SeleniumBase/blob/master/requirements.txt) for SeleniumBase
74
74
75
-
```bash
75
+
```zsh
76
76
sudo pip install -r requirements.txt --upgrade
77
77
```
78
78
79
79
#### Step 12. Install SeleniumBase
80
80
81
-
```bash
81
+
```zsh
82
82
sudo python setup.py develop
83
83
```
84
84
85
85
#### Step 13. Run an [example test](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) on Chrome to verify installation (May take up to 10 seconds)
Copy file name to clipboardExpand all lines: integrations/node_js/ReadMe.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,21 @@ You can create a customized web app for running SeleniumBase tests by using Node
15
15
16
16
#### 2. Upgrade NodeJS (if using an older version)
17
17
18
-
```bash
18
+
```zsh
19
19
npm install -g npm@latest
20
20
```
21
21
22
22
#### 3. Install the example Test Runner for SeleniumBase from [integrations/node_js](https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/node_js). (If dependencies were already installed, you can use `npm ci` for a speed improvement over `npm i` / `npm install` because `npm ci` uses `npm-shrinkwrap.json`, which is generated via ``npm shrinkwrap``.)
23
23
24
-
```bash
24
+
```zsh
25
25
npm install
26
26
```
27
27
28
28
(You should see a `node_modules` folder appear in your `node_js` folder.)
29
29
30
30
#### 4. Run the NodeJS server for your SeleniumBase Test Runner web app
You can also run your tests on someone else's Selenium Grid to avoid managing your own. Here are some Selenium Grids that you can use (and the run command format):
0 commit comments