We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683ae29 commit 8d48ca2Copy full SHA for 8d48ca2
readme.md
@@ -76,14 +76,3 @@ Appium::Driver.new(apk).start_driver
76
- [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
77
- [Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
78
- [iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md)
79
-
80
-Print the currently active activity using Pry.
81
82
-```ruby
83
-def current_app
84
- pair = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first.split(' ').last.gsub('}','').split('/')
85
- { pkg: pair.first, act: pair.last }
86
-end
87
88
-current_app
89
-```
0 commit comments