Skip to content

Commit 8569745

Browse files
authored
Deprecate PhantomJS browser (#1261)
1 parent e7d7df0 commit 8569745

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SeleniumLibrary/keywords/webdrivertools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
import os
18+
import warnings
1819

1920
from robot.utils import ConnectionCache
2021
from selenium import webdriver
@@ -151,6 +152,8 @@ def create_safari(self, desired_capabilities, remote_url):
151152
return webdriver.Safari(**desired_capabilities)
152153

153154
def create_phantomjs(self, desired_capabilities, remote_url):
155+
warnings.warn('SeleniumLibrary support for PhantomJS has been deprecated, '
156+
'please use headlesschrome or headlessfirefox instead.')
154157
if is_truthy(remote_url):
155158
return self._remote(desired_capabilities, remote_url)
156159
return webdriver.PhantomJS(**desired_capabilities)

0 commit comments

Comments
 (0)