testcentricity_web 0.7.1 → 0.7.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b46d8e4ce4c479595b40af6e05228921c7f8cfd
|
|
4
|
+
data.tar.gz: 38929c566789d3ca56d6ea8b2ce523601c6367da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: befd23db564f85e8e74fbc774f02bb949d3a47a232abfbc68991495e2fbc95287a9254a6668a21eee913b793a03595de7fe54f0d7ac8d541d615e3aecc22d7d5
|
|
7
|
+
data.tar.gz: a664cfbc24afa3e2814fb59c8898be38f5914141d56a3d21f4c48753d3f693748c1cd20f2d5b05231ab79ebae073e62b0523eaf04da486a28059f6920f8d3b6b
|
data/README.md
CHANGED
|
@@ -112,7 +112,7 @@ You define your page's **Traits** as shown below:
|
|
|
112
112
|
class HomePage < TestCentricity::PageObject
|
|
113
113
|
trait(:page_name) { 'Home' }
|
|
114
114
|
trait(:page_url) { '/dashboard' }
|
|
115
|
-
trait(:page_locator) { 'body.dashboard }
|
|
115
|
+
trait(:page_locator) { 'body.dashboard' }
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
|
|
@@ -216,7 +216,7 @@ You define your page section's **Traits** as shown below:
|
|
|
216
216
|
trait(:section_locator) { 'form#gnav-search' }
|
|
217
217
|
|
|
218
218
|
# Search Form UI elements
|
|
219
|
-
textfield :search_field, '#search-query
|
|
219
|
+
textfield :search_field, '#search-query'
|
|
220
220
|
button :search_button, 'button[type=submit]'
|
|
221
221
|
end
|
|
222
222
|
|
|
@@ -229,7 +229,7 @@ You can add high level methods to your **PageSection** class definition, as show
|
|
|
229
229
|
trait(:section_locator) { 'form#gnav-search' }
|
|
230
230
|
|
|
231
231
|
# Search Form UI elements
|
|
232
|
-
textfield :search_field, '#search-query
|
|
232
|
+
textfield :search_field, '#search-query'
|
|
233
233
|
button :search_button, 'button[type=submit]'
|
|
234
234
|
|
|
235
235
|
def search_for(value)
|
|
@@ -246,7 +246,7 @@ You add a **PageSection Object** to its associated **Page Object** as shown belo
|
|
|
246
246
|
class HomePage < TestCentricity::PageObject
|
|
247
247
|
trait(:page_name) { 'Home' }
|
|
248
248
|
trait(:page_url) { '/dashboard' }
|
|
249
|
-
trait(:page_locator) { 'body.dashboard }
|
|
249
|
+
trait(:page_locator) { 'body.dashboard' }
|
|
250
250
|
|
|
251
251
|
# Home page Section Objects
|
|
252
252
|
section :search_form, SearchForm
|
|
@@ -33,7 +33,7 @@ module TestCentricity
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def self.switch_to_new_browser_instance
|
|
36
|
-
Capybara.page.driver.browser.switch_to.window(page.driver.browser.window_handles.last)
|
|
36
|
+
Capybara.page.driver.browser.switch_to.window(Capybara.page.driver.browser.window_handles.last)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def self.close_all_browser_instances
|
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: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
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: 2016-04-
|
|
11
|
+
date: 2016-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|