teber-library 0.1.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.
@@ -0,0 +1,3 @@
1
+ module Teber
2
+ VERSION = "0.1.1"
3
+ end
data/lib/teber/wait.rb ADDED
@@ -0,0 +1,30 @@
1
+ module Teber
2
+ module Wait
3
+
4
+ # avoid defining self in def self.some_method -> def some_method
5
+ class << self
6
+
7
+ def wait_for_element(locator, timeout=$conf["implicit_wait"], focus_driver = $focus_driver)
8
+ index=0
9
+ while locator.is_present?(focus_driver) == false
10
+ sleep 1
11
+ if index == timeout
12
+ break
13
+ end
14
+ index+=1
15
+ end
16
+ end
17
+
18
+ def wait_for_element_hide(locator, timeout=$conf["implicit_wait"], focus_driver = $focus_driver)
19
+ index=0
20
+ while locator.is_present?(focus_driver) == true
21
+ sleep 1
22
+ if index == timeout
23
+ break
24
+ end
25
+ index+=1
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,34 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "teber/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "teber-library"
7
+ spec.version = Teber::VERSION
8
+ spec.authors = ["Naresh Sekar"]
9
+ spec.email = ["nareshnavinash@gmail.com"]
10
+
11
+ spec.summary = %q{Common methods for web driver and locator methods in UI automation}
12
+ spec.description = %q{To have all the common methods that are used for UI automation, this enables us to share the methods across teams}
13
+ spec.homepage = "https://nareshnavinash.wixsite.com/teber"
14
+ spec.license = "GPL-3.0"
15
+
16
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = "https://github.com/nareshnavinash/Teber-Gem"
20
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_development_dependency "bundler", "~> 2.0"
32
+ spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rspec", "~> 3.0"
34
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: teber-library
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Naresh Sekar
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: To have all the common methods that are used for UI automation, this
56
+ enables us to share the methods across teams
57
+ email:
58
+ - nareshnavinash@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - CONTRIBUTING.md
68
+ - Gemfile
69
+ - Gemfile.lock
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - lib/teber.rb
76
+ - lib/teber/Teber-Library-Gem.png
77
+ - lib/teber/driver.rb
78
+ - lib/teber/locator.rb
79
+ - lib/teber/version.rb
80
+ - lib/teber/wait.rb
81
+ - teber-library.gemspec
82
+ homepage: https://nareshnavinash.wixsite.com/teber
83
+ licenses:
84
+ - GPL-3.0
85
+ metadata:
86
+ homepage_uri: https://nareshnavinash.wixsite.com/teber
87
+ source_code_uri: https://github.com/nareshnavinash/Teber-Gem
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.7.8
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Common methods for web driver and locator methods in UI automation
108
+ test_files: []