Skip to content

Commit 4f21b3a

Browse files
committed
[rb] remove deprecated script alias for execute_script
1 parent b2ffa28 commit 4f21b3a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

rb/lib/selenium/webdriver/common/driver.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)