ole-qa-framework 3.6.6 → 3.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmFhMjc5ZDc1Yjk0ZGJlOGE5Y2EwZGY4ODVlYjQ2NTZmYWY5YTZiMQ==
4
+ YWM2NDk3MmEzZWI4NzUzODExYWUxZTlhNTRlNTliMjJlY2M0OTM0YQ==
5
5
  data.tar.gz: !binary |-
6
- YzVhODg4Nzc5ZTg4ZDhhNDI5Yjg5YTY4NTMzNzZiNmM3NTk5YTIxYw==
6
+ NWYxMWQ0NjgxM2E3YmRhY2I2ZGU1NDhiY2NjN2YwYTMxYWM3ZmUxZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGFiYjM3NDAxZDc1OGVkOWQyMzdlMDE4YzEyMTgyM2YwMWNmZjkzNmM5NjJj
10
- NGUwYTE4YjIwNDc5OTljZTJiYTM5MzMzYmEwYWVmYWIyOTJiZmVlNGE3ZjRj
11
- M2Y3OGMwYzU0ODY4NmUyMzcxZmY0OGFkMjMzYzA4ZWY0ZGIzMjY=
9
+ YmU0ODIxZTgzZDBmOGUwMGRkNWZkOGFhZmFmNDIxYjMxN2VjOWViZTJkYjk1
10
+ ZDUwZjc0YTk0ZWU4MTNkMDlkNThlZWE2YjA5MjY0NWQ2MjFlZjYyM2YwMGRm
11
+ NTY4MDczYmZlZDQwNWExN2M4Nzg4YzAxOTUzZGE3NWYxYWE1MGU=
12
12
  data.tar.gz: !binary |-
13
- ZDZlOTNlMDM2MDc1ZjNhOTUyNmYyMzAxOWZjNWM3Y2RjM2E2Mzc4ZDM1NDcz
14
- MmZhY2NjMmQ3Yjg1ZDUxZWE0MjM1ZmU0MmQ0MzJmMTA3OTY3ZmU1OWVmZGUz
15
- NThlZWRhYTJiN2IyOGU3MmY0YzA3ZWRjNWI4Mjk5NGVkYWRiMWE=
13
+ MmJkYjgxMDM1MjkzOGQ2N2E2MjJkYTc3YzU4MGI2NDViYTJiYWU5ZGY4MTRj
14
+ ZGVlZjFhODI3ZDNlNTIzMTM3NDRmZDRhMGFhMjQ4OWNmZWEwNmFlMTk0NjYz
15
+ M2JiZmQ4NTliYzYwYjNmM2FmMmQzNmQxZjI1NjYzNmY1NDc1Njg=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### v3.6.7 - 2013/12/13
2
+
3
+ * Patron Lookup
4
+ * Added .text_in_results? function.
5
+ * Added .edit_by_text function to return edit link.
6
+ * Added .copy_by_text function to return copy link.
7
+ * Added .delete_by_text function to return delete link.
8
+
1
9
  ### v3.6.6 - 2013/12/12
2
10
 
3
11
  * Patron
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The version number for this project.
18
- VERSION = '3.6.6'
18
+ VERSION = '3.6.7'
19
19
  end
20
20
  end
@@ -40,5 +40,26 @@ module OLE_QA::Framework::OLELS
40
40
  element(:clear_button) {b.button(:text => "Clear Values")}
41
41
  element(:cancel_button) {b.button(:text => "Cancel")}
42
42
  end
43
+
44
+ def set_functions
45
+ super
46
+ # Return whether the given text exists in the search results.
47
+ function(:text_in_results?) {|which| b.span(:xpath => "//td/div/span[contains(text(),'#{which}')]").present? }
48
+ # Function used for edit_by_text, copy_by_text, and delete_by_text.
49
+ function(:edit_by_text) {|which| b.a(:xpath => link_by_text('edit',which)) }
50
+ # Return the copy link for a given text string in the search results.
51
+ function(:copy_by_text) {|which| b.a(:xpath => link_by_text('copy',which)) }
52
+ # Return the delete link for a given text string in the search results.
53
+ function(:delete_by_text) {|which| b.a(:xpath => link_by_text('delete',which)) }
54
+ end
55
+
56
+ # Return the XPath to find a link with the given text on a line containing a search result with the given text.
57
+ # @param [String] link The text of the link to be returned. ('edit','copy', or 'delete')
58
+ # @param [String] text The text to locate in the search results. (e.g., a patron's first name, barcode, ID, etc.)
59
+ def link_by_text(link,text)
60
+ "//tr/td[div/span[contains(text(),'#{text}')]]/preceding-sibling::td/div/fieldset/div/div/a[contains(text(),'#{link}')]"
61
+ end
62
+ private :link_by_text
63
+
43
64
  end
44
- end
65
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ole-qa-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.6
4
+ version: 3.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jain Waldrip
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2013-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler