appium_lib 9.10.0 → 9.11.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.10.0
4
+ version: 9.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.1
19
+ version: 1.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.1
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tomlrb
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +209,6 @@ files:
209
209
  - contributing.md
210
210
  - docs/android_docs.md
211
211
  - docs/android_uiautomator.md
212
- - docs/api_19_webview.md
213
212
  - docs/docs.md
214
213
  - docs/index_paths.md
215
214
  - docs/ios_docs.md
@@ -223,6 +222,7 @@ files:
223
222
  - lib/appium_lib.rb
224
223
  - lib/appium_lib/android/android.rb
225
224
  - lib/appium_lib/android/common/command/command.rb
225
+ - lib/appium_lib/android/common/command/ws_logcat.rb
226
226
  - lib/appium_lib/android/common/helper.rb
227
227
  - lib/appium_lib/android/element/alert.rb
228
228
  - lib/appium_lib/android/element/button.rb
@@ -1,49 +0,0 @@
1
- ## Android API 19 Webview Automation
2
-
3
- #### JavaScript evaluation
4
-
5
- ```ruby
6
- # automate flickr login https://mlogin.yahoo.com/w/login?
7
- # first click into the webview, then attach.
8
-
9
- webview = Appium::Android::Webview.attach_to_tab package: 'com.example.Package', url: 'yahoo.com/'
10
- webview.client.page_events = true
11
-
12
- # javascript from this commit:
13
- # https://github.com/appium/ruby_lib/commit/9b838f4dc280126e4468a177fa4dd83eb2417512
14
- js = Appium::Android::Webview.javascript + <<-JS
15
- firstEmailInput().value = 'example@example.com';
16
- firstPasswordInput().value = 'password'
17
- firstSubmitElement().click();
18
- JS
19
-
20
- webview.client.remote_eval js
21
- webview.client.wait_for(type: WebkitRemote::Event::PageLoaded).last
22
-
23
- # must sleep to let the page load. the page loaded event doesn't mean the page has loaded...
24
- sleep 5
25
-
26
- # wait for element to exist on page, then check readystate
27
- wait_true { webview.client.remote_eval('firstAuthElement() !== null;') }
28
- wait_true { webview.client.remote_eval('document.readyState') == 'complete' }
29
-
30
- js = Appium::Android::Webview.javascript + <<-JS
31
- firstAuthElement().click();
32
- JS
33
-
34
- webview.client.remote_eval js
35
-
36
- # now we're successfully logge in and authorized on flickr
37
- ```
38
-
39
- #### uiautomator accessibility
40
-
41
- 1. Load a webview. Exit the webview. From now on all webviews will have accessibility enabled.
42
-
43
- ```ruby
44
- textfield(1).type 'example@example.com'
45
- textfield(2).type 'password'
46
- name('sign in').click
47
-
48
- name("ok, i'll authorize it").click
49
- ```