File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
lib/selenium/webdriver/common
spec/integration/selenium/webdriver Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -99,22 +99,6 @@ def navigate
9999 @navigate ||= WebDriver ::Navigation . new ( bridge )
100100 end
101101
102- #
103- # @return [Script]
104- # @see Script
105- #
106-
107- def script ( *args )
108- if args . any?
109- WebDriver . logger . deprecate ( '`Driver#script` as an alias for `#execute_script`' ,
110- '`Driver#execute_script`' ,
111- id : :driver_script )
112- execute_script ( *args )
113- else
114- @script ||= WebDriver ::Script . new ( bridge )
115- end
116- end
117-
118102 #
119103 # @return [TargetLocator]
120104 # @see TargetLocator
Original file line number Diff line number Diff line change @@ -244,15 +244,6 @@ module WebDriver
244244 end
245245 end
246246
247- describe '#script' do
248- it 'executes script with deprecation warning' do
249- driver . navigate . to url_for ( 'xhtmlTest.html' )
250- expect {
251- expect ( driver . script ( 'return document.title;' ) ) . to eq ( 'XHTML Test Page' )
252- } . to have_deprecated ( :driver_script )
253- end
254- end
255-
256247 describe '#execute_script' do
257248 it 'returns strings' do
258249 driver . navigate . to url_for ( 'xhtmlTest.html' )
You can’t perform that action at this time.
0 commit comments