citronella 1.0.0 → 1.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 +4 -4
- data/README.md +6 -2
- data/citronella.gemspec +1 -1
- data/lib/web_page.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 572a05603b535810328bd3d82612b5133810773ad46ca094daa2e92618d3087f
|
|
4
|
+
data.tar.gz: 913908e8bf7d28b6b9beb7a3ad86d4e9a9b6278b7250d11e0c43d711a60b6e25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51b581dcf93989fcf87d08c26ef7c9ba79182e390234d9d051b9e71005a64964feb34da34f862d51f7ec400dc47c184c46e274dbbd1eb8c8862f512ff746cfea
|
|
7
|
+
data.tar.gz: 562b3a4941affe127b9f7f0be4ec893d64b6bbe1c9a809cc8edf52c8ae4fc73d87a304915a00fc2def16c44e2578266b3f0dc351fc3dae2f370289e90845fd6a
|
data/README.md
CHANGED
|
@@ -46,6 +46,8 @@ class NavigationTest < Test::Unit::TestCase
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
```
|
|
49
|
+

|
|
50
|
+
|
|
49
51
|
Even though this module is mainly designed for the page object model, it can also be used without it for quick prototyping or mockups, etc.
|
|
50
52
|
```ruby
|
|
51
53
|
require 'test/unit'
|
|
@@ -66,12 +68,14 @@ class PackageSearchTest < Test::Unit::TestCase
|
|
|
66
68
|
|
|
67
69
|
def test_search_package
|
|
68
70
|
@web.driver.navigate.to "https://rubygems.org/"
|
|
69
|
-
@web.locate(id: 'home_query').
|
|
70
|
-
@web.locate(class: 'home__search__icon').
|
|
71
|
+
@web.locate(id: 'home_query').send_keys('citronella')
|
|
72
|
+
@web.locate(class: 'home__search__icon').click
|
|
71
73
|
assert(@web.locate(class: 'gems__gem__name').get_element.text, 'citronella')
|
|
72
74
|
end
|
|
73
75
|
end
|
|
74
76
|
```
|
|
77
|
+

|
|
78
|
+
|
|
75
79
|
___
|
|
76
80
|
## Install Package
|
|
77
81
|
|
data/citronella.gemspec
CHANGED
data/lib/web_page.rb
CHANGED
|
@@ -84,8 +84,7 @@ module Citronella
|
|
|
84
84
|
#
|
|
85
85
|
def locate(args)
|
|
86
86
|
Citronella::Ui::WebUi.new(@driver, @webdriver_wait, @logger, args,
|
|
87
|
-
__method__.to_s
|
|
88
|
-
self.class.name.split('::').last.to_s)
|
|
87
|
+
args, __method__.to_s)
|
|
89
88
|
end
|
|
90
89
|
|
|
91
90
|
# Executes JavaScript to wait for the page to fully load.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: citronella
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- heyclore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-06-
|
|
11
|
+
date: 2023-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: selenium-webdriver
|