selenium_page 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 12822a93e2f8ef08fe5a7358acf425c52ada3763c63893e77775d0a072e2ca86
4
+ data.tar.gz: 5f1f3387f5c5f6b199c8111d2241d8d8d5bb406c554bc92f99cbfc59f1f21c12
5
+ SHA512:
6
+ metadata.gz: 31953427254309675f5c4830d2f44a0ad62820f4073c0dc4f44c0db263861ba9b33dbee6df26490576d64b9d72fcc99477e0afe20fc6ca742ed5617f717309b7
7
+ data.tar.gz: a931e2bba655b8dda23b03b73c2d8d8dc10df993709ee16dfefed804f18adcb6a19b4bc50eefbb067bcac79dc2b7703444637d72993baaa0692f7a4d302ea765
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 maxxillo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # selenium_page
2
+ This gem uses https://github.com/SeleniumHQ/selenium/tree/master/rb to implement the Page Object Pattern
@@ -0,0 +1,9 @@
1
+ # SeleniumPage
2
+ class SeleniumPage
3
+ def self.hi(language = 'english')
4
+ translator = Translator.new(language)
5
+ translator.hi
6
+ end
7
+ end
8
+
9
+ require 'selenium_page/translator'
@@ -0,0 +1,17 @@
1
+ module Translator
2
+ # SeleniumPage::Translator
3
+ class SeleniumPage
4
+ def initialize(language)
5
+ @language = language
6
+ end
7
+
8
+ def hi
9
+ case @language
10
+ when 'spanish'
11
+ 'hola mundo'
12
+ else
13
+ 'hello world'
14
+ end
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: selenium_page
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Massimiliano De Vivo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A page object pattern gem for Selenium Webdriver!
14
+ email: maxtru2005@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE.md
20
+ - README.md
21
+ - lib/selenium_page.rb
22
+ - lib/selenium_page/translator.rb
23
+ homepage: http://rubygems.org/gems/selenium_page
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.7.6
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: A page object pattern gem for Selenium Webdriver!
47
+ test_files: []