diff --git a/README.md b/README.md index 08a9136fdb2..3167ab77c32 100755 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ SeleniumBase includes an automated/manual hybrid solution called **[MasterQA](ht To run automation on various web browsers, you'll need to download a driver file for each one and place it on your System **[PATH](http://java.com/en/download/help/path.xml)**. On a Mac, ``/usr/local/bin`` is a good spot. On Windows, make sure you set the System Path under Environment Variables to include the location where you placed the driver files: -* For Chrome, get [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) on your System Path. +* For Chrome, get [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) on your System Path. (**Version 2.32 or above required!**) * For Firefox, get [Geckodriver](https://github.com/mozilla/geckodriver/releases) on your System Path. @@ -116,6 +116,12 @@ Mac: brew install chromedriver phantomjs ``` +(NOTE: If your existing version of chromedriver is less than 2.32, **you must upgrade!**) + +```bash +brew upgrade chromedriver +``` + * To verify that the web drivers are working, **[follow these instructions](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/verify_webdriver.md)**. diff --git a/requirements.txt b/requirements.txt index 83361c8f225..429fedd3c75 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ pip>=9.0.1 -setuptools>=36.3.0 +setuptools>=36.5.0 ipython==5.4.1 -selenium==3.5.0 +selenium==3.6.0 nose==1.3.7 pytest==3.2.1 pytest-html==1.15.2 diff --git a/seleniumbase/config/settings.py b/seleniumbase/config/settings.py index 3e0bc6f22f8..d3fe37f6df4 100755 --- a/seleniumbase/config/settings.py +++ b/seleniumbase/config/settings.py @@ -72,6 +72,9 @@ # Called after each wait_for_ready_state_complete() WAIT_FOR_ANGULARJS = False +# Option to start Chrome in full screen mode by default +START_CHROME_IN_FULL_SCREEN_MODE = False + # #####>>>>>----- MasterQA SETTINGS -----<<<<<##### # ##### (Used when importing MasterQA as the parent class) diff --git a/seleniumbase/core/browser_launcher.py b/seleniumbase/core/browser_launcher.py index 2a854f8e789..3c45c99ce7e 100755 --- a/seleniumbase/core/browser_launcher.py +++ b/seleniumbase/core/browser_launcher.py @@ -1,6 +1,7 @@ from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.desired_capabilities import DesiredCapabilities +from seleniumbase.config import settings from seleniumbase.core import download_helper from seleniumbase.fixtures import constants @@ -77,6 +78,12 @@ def get_driver(browser_name): chrome_options.add_experimental_option("prefs", prefs) chrome_options.add_argument("--allow-file-access-from-files") chrome_options.add_argument("--allow-running-insecure-content") + chrome_options.add_argument("--disable-infobars") + if settings.START_CHROME_IN_FULL_SCREEN_MODE: + # Run Chrome in full screen mode on WINDOWS + chrome_options.add_argument("--start-maximized") + # Run Chrome in full screen mode on MAC/Linux + chrome_options.add_argument("--kiosk") return webdriver.Chrome(chrome_options=chrome_options) except Exception: return webdriver.Chrome() diff --git a/server_requirements.txt b/server_requirements.txt index 1c899a4924b..5cc7e4df26e 100755 --- a/server_requirements.txt +++ b/server_requirements.txt @@ -1,5 +1,5 @@ pip>=9.0.1 -setuptools>=36.3.0 +setuptools>=36.5.0 ipython==5.4.1 selenium==2.53.6 nose==1.3.7 diff --git a/server_setup.py b/server_setup.py index 7b5fffd2555..e34439b790e 100755 --- a/server_setup.py +++ b/server_setup.py @@ -8,7 +8,7 @@ setup( name='seleniumbase', - version='1.4.5', + version='1.4.6', description='Test Automation Framework - http://seleniumbase.com', long_description='Automation Framework for Simple & Reliable Web Testing', platforms='Mac * Windows * Linux * Docker', @@ -19,7 +19,7 @@ license='The MIT License', install_requires=[ 'pip>=9.0.1', - 'setuptools>=36.3.0', + 'setuptools>=36.5.0', 'ipython==5.4.1', 'selenium==2.53.6', 'nose==1.3.7', diff --git a/setup.py b/setup.py index faddf6d06e6..238c21579f5 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='seleniumbase', - version='1.4.5', + version='1.4.6', description='Test Automation Framework - http://seleniumbase.com', long_description='Automation Framework for Simple & Reliable Web Testing', platforms='Mac * Windows * Linux * Docker', @@ -18,9 +18,9 @@ license='The MIT License', install_requires=[ 'pip>=9.0.1', - 'setuptools>=36.3.0', + 'setuptools>=36.5.0', 'ipython==5.4.1', - 'selenium==3.5.0', + 'selenium==3.6.0', 'nose==1.3.7', 'pytest==3.2.1', 'pytest-html==1.15.2',