testcentricity_web 2.0.4 → 2.0.5

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: abf98d2bf823bf454f32ac40a814ea7923540801
4
- data.tar.gz: 2426a486e89d93584e2714d82444fe746014aae7
3
+ metadata.gz: 94ffd88fe954574651b54fba9e6747fd53b465d5
4
+ data.tar.gz: fea249644cb1b4b87c10539c5d70a40a7f9a3424
5
5
  SHA512:
6
- metadata.gz: 730b7959d570ede1269066c99757f93b4e92301530142fe29a30617c45389d8fce2efa69263eeda4e433b2283136b6facc4fabecc520de0cb1f0b2dee7b123d9
7
- data.tar.gz: a35a08254800a177933833c5fad3e10bbf8cfdb2bcadeb80d46ff6fd379219ff9141d9c1de22d7be3a47550d42da3c8d4f4fcc902ef55e3813612423fd6b8218
6
+ metadata.gz: 0a7f2e6559be17263e95d568979c6c4c55df1b0a509ca1678ace66a8a771f23eaf7c6b3eed1fbc0e90b556d7f6f0747acc9d580e9e8ea81e29cc82947d22d6ee
7
+ data.tar.gz: ff98b147a0e30a18ca0cf03a6c391b88742b750a24457b2ff47feb3b8bde69de3f753922fcc17f6b80dedcfd0f784f43200def58ab8c51704b0c3ad36902bc67
data/README.md CHANGED
@@ -810,6 +810,7 @@ for information regarding the specific capabilities.
810
810
  `RESOLUTION` | [Optional] Refer to supported screen `resolution` capability in chart
811
811
  `BROWSER_SIZE` | [Optional] Specify width, height of browser window
812
812
  `RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
813
+ `TIME_ZONE` | [Optional] Specify custom time zone. Refer to `browserstack.timezone` capability in chart
813
814
 
814
815
 
815
816
  #### Remote mobile browsers on the BrowserStack service
@@ -829,6 +830,7 @@ for information regarding the specific capabilities.
829
830
  `TUNNELING` | Must be `true` if you are testing against internal/local servers (`true` or `false`)
830
831
  `ORIENTATION` | [Optional] Set to `portrait` or `landscape`
831
832
  `RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
833
+ `TIME_ZONE` | [Optional] Specify custom time zone. Refer to `browserstack.timezone` capability in chart
832
834
 
833
835
 
834
836
 
@@ -1164,6 +1166,11 @@ service(s) that you intend to connect with.
1164
1166
  sl_desktop: --profile saucelabs <%= desktop %>
1165
1167
 
1166
1168
  # SauceLabs OS X desktop browser profiles
1169
+ sl_osx_sierra: --profile sl_desktop SL_OS="macOS 10.12"
1170
+ sl_ff_sierra: --profile sl_osx_sierra SL_BROWSER="firefox"
1171
+ sl_chrome_sierra: --profile sl_osx_sierra SL_BROWSER="chrome"
1172
+ sl_safari_sierra: --profile sl_osx_sierra SL_BROWSER="safari"
1173
+
1167
1174
  sl_osx_el_capitan: --profile sl_desktop SL_OS="OS X 10.11"
1168
1175
  sl_ff_el_cap: --profile sl_osx_el_capitan SL_BROWSER="firefox"
1169
1176
  sl_chrome_el_cap: --profile sl_osx_el_capitan SL_BROWSER="chrome"
@@ -36,6 +36,24 @@ module TestCentricity
36
36
  Capybara.page.driver.browser.navigate.refresh
37
37
  end
38
38
 
39
+ # Emulates clicking the web browser's Back button. Navigates back by one page on the browser’s history.
40
+ #
41
+ # @example
42
+ # Browsers.navigate_back
43
+ #
44
+ def self.navigate_back
45
+ Capybara.page.driver.browser.navigate.back
46
+ end
47
+
48
+ # Emulates clicking the web browser's Forward button. Navigates forward by one page on the browser’s history.
49
+ #
50
+ # @example
51
+ # Browsers.navigate_forward
52
+ #
53
+ def self.navigate_forward
54
+ Capybara.page.driver.browser.navigate.forward
55
+ end
56
+
39
57
  def self.switch_to_new_browser_instance
40
58
  Capybara.page.driver.browser.switch_to.window(Capybara.page.driver.browser.window_handles.last)
41
59
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.0.4'
2
+ VERSION = '2.0.5'
3
3
  end
@@ -170,6 +170,7 @@ module TestCentricity
170
170
  capabilities['deviceOrientation'] = ENV['ORIENTATION'] if ENV['ORIENTATION']
171
171
  end
172
172
 
173
+ capabilities['browserstack.timezone'] = ENV['TIME_ZONE'] if ENV['TIME_ZONE']
173
174
  capabilities['browserstack.video'] = ENV['RECORD_VIDEO'] if ENV['RECORD_VIDEO']
174
175
  capabilities['browserstack.debug'] = 'true'
175
176
  capabilities['project'] = ENV['AUTOMATE_PROJECT'] if ENV['AUTOMATE_PROJECT']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-27 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler