testcentricity_web 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/testcentricity_web/browser_helper.rb +18 -0
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/webdriver_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94ffd88fe954574651b54fba9e6747fd53b465d5
|
4
|
+
data.tar.gz: fea249644cb1b4b87c10539c5d70a40a7f9a3424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
+
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-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|