gogo_driver 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49f77e06484158676215a3d8d2ee049402b67769
4
- data.tar.gz: 588c2beebc576c6d272d1406215a0fbbcac6d1b0
3
+ metadata.gz: 3db30504b0b20d6f42dac5a3ed5047c94fdf8925
4
+ data.tar.gz: 54a55414e56e949dd391115ca14cbb1d60a1ca5d
5
5
  SHA512:
6
- metadata.gz: 71f8d94a67aeca61eef82e4e934ce34f0f43ffdfff4a82feb78c31eb618ec1f28c6dd1b1f35603a8f00f10959ee3deba4b5bdd1795af2644f322d591ca3cca28
7
- data.tar.gz: be551eb77e567a1dcd32d88419f3b87640efadd6400189c5ea275adeebafaa44a0c99d7e406df60a401836a8c113908acfa8f403c5f63f7d8cbc70b8ef24ebe4
6
+ metadata.gz: 71a169a6ca5ce82d51074c89c767bb8bac66be5300e1b095062df96dd587423d757fc39721eaa5760a439f5e210ca96874d5b5552a4921aece33cdc338ed6268
7
+ data.tar.gz: 785290881a14d6ad5a9a9127aaaf4a15ba1dad3946bd3cce43b58a07344280c35974be578b1f878b10ec040de5681f29d08c39d40a9b70c38baa49e0786de934
data/gogo_driver.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "gogo_driver"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["gogotanaka"]
9
9
  spec.email = ["mail@tanakakazuki.com"]
10
10
  spec.summary = %q{Super simple web driver.}
data/lib/gogo_driver.rb CHANGED
@@ -19,6 +19,10 @@ class GogoDriver
19
19
  @driver.find_element(css: selector)
20
20
  end
21
21
 
22
+ def finds(selector)
23
+ @driver.find_elements(css: selector)
24
+ end
25
+
22
26
  def has?(selector)
23
27
  !!find(selector)
24
28
  rescue Selenium::WebDriver::Error::NoSuchElementError
@@ -43,3 +47,18 @@ class GogoDriver
43
47
  @driver.respond_to?(method) ? @driver.send(method, *args, &block) : super
44
48
  end
45
49
  end
50
+
51
+ class Selenium::WebDriver::Element
52
+ def fill(text)
53
+ $focus = self
54
+ send_key(text)
55
+ end
56
+
57
+ def find(selector)
58
+ find_element(css: selector)
59
+ end
60
+
61
+ def finds(selector)
62
+ find_elements(css: selector)
63
+ end
64
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogo_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gogotanaka