appium_capybara 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfe3c68f683b0ada3923127c15a84426ee8c0131
4
- data.tar.gz: 48b32b767562d0fca0f0e0ecd5c1e79ac9319e9f
3
+ metadata.gz: a40bfe134ed40216b27a32ff34b5393e1f8f5404
4
+ data.tar.gz: ca0f0703b88553cfabbe209307722fd3a5c140f1
5
5
  SHA512:
6
- metadata.gz: d044255e60363782dffabe885ce028079e327a378c8cc2bc417ff9792455864d29205e072b10e8960222197282f45a0a7b487a3a5e014a2cc645ad7fb77a3315
7
- data.tar.gz: f3015ce5a74275284f5ec083458611857514725f7546a4b4bc82da99020b7d7fef6e313184e2b47c0a8fa40ba5c56778d8aaf4340b422728b75535df3f716e64
6
+ metadata.gz: 62e34986316ff73b397de699b6f2bb3ed664f35a9404544b39f146f7a2749768de45cb97f93b2ca4481c96eb38efbd80927777875bf38968eb10232698bcf576
7
+ data.tar.gz: 0f18b9099c501e0806bcd0c6484a501029ee4e63c04f2d2dae02bcffe32c4a4327d3fd457d53a3edb76b249ffa02284858545b06e5bf0c360fa1a8ecc2d330ab
@@ -51,6 +51,16 @@ module Appium::Capybara
51
51
  @browser = nil
52
52
  end
53
53
 
54
+ def current_url
55
+ raise NotImplementedError,
56
+ "Appium::Capybara::Driver does not support current_url because it does not apply to mobile applications"
57
+ end
58
+
59
+ def visit(path)
60
+ raise NotImplementedError,
61
+ "Appium::Capybara::Driver does not support visit(path) because it does not apply to mobile applications"
62
+ end
63
+
54
64
  def dismiss_alert
55
65
  browser.alert_dismiss
56
66
  end
@@ -4,7 +4,8 @@ module Capybara
4
4
  # Next line is a work around for issue https://github.com/jnicklas/capybara/issues/1237
5
5
  if @touched && driver.browser_initialized?
6
6
  driver.reset!
7
- assert_no_selector(:xpath, "/html/body/*")
7
+ # Ugly hack to not run this assertion for Appium
8
+ assert_no_selector(:xpath, "/html/body/*") unless driver.instance_of? Appium::Capybara::Driver
8
9
  @touched = false
9
10
  end
10
11
  raise_server_error!
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '0.0.3' unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2014-08-06' unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '0.0.4' unless defined? ::Appium::Capybara::VERSION
4
+ DATE = '2014-08-07' unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### v0.0.4 2014-08-07
2
+
3
+ - [16061f4](https://github.com/appium/appium_capybara/commit/16061f43ef4ac0796bc05f9d4af9e22e58d769e1) Release 0.0.4
4
+ - [be07877](https://github.com/appium/appium_capybara/commit/be078778c265a6483c54290e87baff786312f495) Fixed crash that sometimes occurs in session.reset! and added better error messages for driver's visit and current_url methods
5
+
6
+
1
7
  #### v0.0.3 2014-08-06
2
8
 
3
9
  - [ee4a9bd](https://github.com/appium/appium_capybara/commit/ee4a9bdab696e5e516ee92d7a9db1e325940fcaf) Release 0.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott.bonebrake@gmail.com
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-06 00:00:00.000000000 Z
12
+ date: 2014-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib