Skip to content

Commit 971db5d

Browse files
committed
Remove Selenium 2 references (Using Selenium 3 now)
1 parent 629cdb5 commit 971db5d

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

help_docs/mysql_installation.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ If you want a visual tool to help make your MySQL life easier, [try MySQL Workbe
2929

3030
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.
3131

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-
3832
#### Configure your MySQL DB for SeleniumBase
3933

4034
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.

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,10 @@ def test_anything(self):
4949
MoveTargetOutOfBoundsException,
5050
WebDriverException)
5151
from selenium.common import exceptions as selenium_exceptions
52-
try:
53-
# Selenium 3 (ElementNotInteractableException does not exist in selenium 2)
54-
ENI_Exception = selenium_exceptions.ElementNotInteractableException
55-
except Exception:
56-
# Selenium 2 (Keep compatibility with seleneium 2.53.6 if still being used)
57-
ENI_Exception = selenium_exceptions.ElementNotSelectableException
5852
from selenium.webdriver.common.by import By
5953
from selenium.webdriver.common.keys import Keys
6054
from selenium.webdriver.support.ui import Select
55+
ENI_Exception = selenium_exceptions.ElementNotInteractableException
6156

6257

6358
class BaseCase(unittest.TestCase):

0 commit comments

Comments
 (0)