Skip to content

Commit

Permalink
[py] Deprecate PhantomJS support
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Dec 6, 2017
1 parent fa49d08 commit b3daa03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/selenium/webdriver/phantomjs/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
# specific language governing permissions and limitations
# under the License.

from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
import warnings

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
from .service import Service


Expand Down Expand Up @@ -44,6 +46,8 @@ def __init__(self, executable_path="phantomjs",
- service_args : A List of command line arguments to pass to PhantomJS
- service_log_path: Path for phantomjs service to log to.
"""
warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '
'versions of Chrome or Firefox instead')
self.service = Service(
executable_path,
port=port,
Expand Down

0 comments on commit b3daa03

Please sign in to comment.