lib/appium_lib/android/helper.rb in appium_lib-0.5.16 vs lib/appium_lib/android/helper.rb in appium_lib-0.6.0
- old
+ new
@@ -359,10 +359,10 @@
# Automatically detects selendroid or android.
# Returns a string containing interesting elements.
# @return [String]
def get_inspect
- @selendroid ? get_selendroid_inspect : get_android_inspect
+ @device == :selendroid ? get_selendroid_inspect : get_android_inspect
end
# Intended for use with console.
# Inspects and prints the current page.
def page
\ No newline at end of file