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
Copy file name to clipboardExpand all lines: examples/tour_examples/ReadMe.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,14 @@
1
1
## SeleniumBase Website Tours
2
2
3
-
SeleniumBase Tours utilize your choice of 4 different JavaScript libraries for creating & running tours, demos, and walkthroughs on any website: **[Shepherd](https://shipshapecode.github.io/shepherd/docs/welcome/)**, **[Bootstrap Tour](http://bootstraptour.com/)**, **[IntroJS](https://introjs.com/)**, and **[Hopscotch](http://linkedin.github.io/hopscotch/)**. Choose your favorite one to use!
3
+
SeleniumBase Tours utilize your choice of 4 different JavaScript libraries for prototyping tours, demos, walkthroughs, and onboarding experiences on any website: **[Shepherd](https://shipshapecode.github.io/shepherd/docs/welcome/)**, **[Bootstrap Tour](http://bootstraptour.com/)**, **[IntroJS](https://introjs.com/)**, and **[Hopscotch](http://linkedin.github.io/hopscotch/)**. Choose your favorite one to use!
4
4
5
5
Example tour:
6
6
7
+
```
8
+
cd examples/tour_examples
9
+
pytest google_tour.py
10
+
```
11
+
7
12
<imgsrc="https://cdn2.hubspot.net/hubfs/100006/google_tour_3.gif"title="SeleniumBase Tour of Google"height="260"><br>
Copy file name to clipboardExpand all lines: help_docs/features_list.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
* Backwards-compatible with [WebDriver](http://www.seleniumhq.org/projects/webdriver/). (Use ``self.driver`` anywhere.)
13
13
* Can run tests through a proxy server. (Use ``--proxy=IP_ADDRESS:PORT``)
14
14
* Can use an authenticated proxy server. (``--proxy=USERNAME:PASSWORD@IP_ADDRESS:PORT``)
15
+
* Can change the web browser's user agent string. (Use ``--agent=USER_AGENT_STRING``)
15
16
* Can handle Google Authenticator logins by using the [Python one-time password library](https://pyotp.readthedocs.io/en/latest/).
16
17
* Includes a hybrid-automation solution called **[MasterQA](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md)** to speed up manual testing.
17
18
* Integrates with [MySQL](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/testcase_manager.py), [Selenium Grid](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_grid), [Azure](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/azure/jenkins/ReadMe.md), [Google Cloud](https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/google_cloud/ReadMe.md), [Amazon S3](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/s3_logging_plugin.py), and [Docker](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/docker/ReadMe.md).
(If you get SSL errors while trying to install packages with pip, see [this Stackoverflow post](https://stackoverflow.com/questions/49768770/not-able-to-install-python-packages-ssl-tlsv1-alert-protocol-version), which tells you to run the above command.)
If you haven't updated Homebrew in awhile, you probably should. Here's how:
55
-
```bash
56
-
brew update
57
-
```
58
-
59
-
### [Git](http://www.git-scm.com)
60
-
61
-
You can [download Git from here](http://git-scm.com/downloads).
62
-
63
-
macOS-ONLY shortcut: (This step only works if you installed Homebrew in the previous step)
64
-
```bash
65
-
brew install git
66
-
```
67
-
68
-
(You can also download the SeleniumBase repository right from GitHub and skip all the git-related commands.)
69
-
70
-
<aid="virtual_environment"></a>
71
-
### [VirtualEnv](http://virtualenv.readthedocs.org/en/latest/) and [VirtualEnvWrapper](http://virtualenvwrapper.readthedocs.org/en/latest/)
72
-
73
-
Virtual environments allow each your Python projects to have a unique set of packaged dependencies.
74
-
75
-
To learn how to create a Python virtual environment, [see this ReadMe](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md).
Copy file name to clipboardExpand all lines: help_docs/mysql_installation.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,6 @@ If you want a visual tool to help make your MySQL life easier, [try MySQL Workbe
29
29
30
30
You can use the [testcaserepository.sql](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/testcaserepository.sql) file to create the necessary tables for storing test data.
31
31
32
-
If you were able to successfully install MySQL, you can now install the remaining MySQL requirements:
33
-
```bash
34
-
pip install -r requirements.txt
35
-
```
36
-
(NOTE: This install uses Selenium 2.53.6 rather than the usual Selenium 3+ from the standard requirements file due to compatibility issues with running browser tests on headless server machines.)
37
-
38
32
#### Configure your MySQL DB for SeleniumBase
39
33
40
34
You'll want to update your [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) file with your MySQL DB credentials so that tests can write to the database when they run.
@@ -44,7 +38,7 @@ You'll want to update your [settings.py](https://github.com/seleniumbase/Seleniu
44
38
Add the ``--with-db_reporting`` argument on the command line when you want tests to write to your MySQL database.
### **Step 2**: Now use VirtualEnv or VirtualEnvWrapper to create a virtual environment:
27
+
### **Step 2**: Now create a virtual environment:
28
28
29
29
#### macOS / Linux / Windows:
30
30
31
+
* Using ``mkvirtualenv``:
31
32
```bash
32
-
mkvirtualenv seleniumbase
33
+
mkvirtualenv seleniumbase_venv
33
34
```
34
35
(If you have multiple versions of Python installed on your machine, and you want your virtual environment to use a specific Python version, add ``--python=PATH_TO_PYTHON_EXE`` with the Python executable to use.)
35
36
37
+
* Using ``virtualenv``:
38
+
```bash
39
+
virtualenv seleniumbase_venv
40
+
source seleniumbase_venv/bin/activate
41
+
```
42
+
43
+
* (Python 3) Using ``mvenv``:
44
+
```bash
45
+
python3 -mvenv seleniumbase_venv
46
+
source seleniumbase_venv/bin/activate
47
+
```
48
+
36
49
---
37
50
38
51
If you ever need to leave your virtual environment, use the following command:
@@ -44,7 +57,7 @@ deactivate
44
57
You can always jump back into your virtual environment later:
0 commit comments