Skip to content

Commit 087d654

Browse files
authored
apply intern (#52)
* apply intern * care nil case * re-write
1 parent c03f03e commit 087d654

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66
- Add `window_rect`
77

88
### Bug fixes
9+
- Make `@driver.automation_name` symbol when someone define the `automationName` with the server argument.
910

1011
### Deprecations
1112

lib/appium_lib_core/driver.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,9 @@ def set_automation_name
458458
# @private
459459
def set_automation_name_if_nil
460460
return unless @automation_name.nil?
461-
@automation_name = @driver.capabilities['automationName']
461+
@automation_name = if @driver.capabilities['automationName']
462+
@driver.capabilities['automationName'].intern
463+
end
462464
end
463465

464466
# @private

0 commit comments

Comments
 (0)