Skip to content

Commit 8d48ca2

Browse files
Current app is in the lib now
1 parent 683ae29 commit 8d48ca2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

readme.md

-11
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,3 @@ Appium::Driver.new(apk).start_driver
7676
- [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
7777
- [Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
7878
- [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

Comments
 (0)