Skip to content

Commit

Permalink
[py] Deprecate use of AppCache APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Mar 30, 2020
1 parent 624731c commit 30542f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/selenium/webdriver/common/html5/application_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
The ApplicationCache implementation.
"""


import warnings

from selenium.webdriver.remote.command import Command


Expand All @@ -38,6 +41,8 @@ def __init__(self, driver):
:Args:
- driver: The WebDriver instance which performs user actions.
"""
warnings.warn("Application Cache is being removed from all major browsers. This feature will be removed in future versions",
DeprecationWarning, stacklevel=2)
self.driver = driver

@property
Expand Down

0 comments on commit 30542f5

Please sign in to comment.