selenium_standalone_dsl 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44a20c6d921f452da8364133c837944fef403428
4
- data.tar.gz: 770f44e85a2b2f0f143cf455d466ec2964c7c28d
3
+ metadata.gz: f9c5dafe68b48d9b049f6fa305420a4956b3a334
4
+ data.tar.gz: 28d3f962ab45c3306ca9a88119d0450242a9ef83
5
5
  SHA512:
6
- metadata.gz: 58ede74241f729f52986e80e4f5b043f132a566270beb3205a45b65f7fedceab1c242193bdd8ef152787990c05d4c1864632a3725baff507a59bdcf212cca22b
7
- data.tar.gz: d14368a8a1f45482d189e4c2bbfe98346a7a624ba8bef4fcd94906f7036250f0535c41d1fb92d1c89cd83cf722b1addf35c51bf8bb4a6132a40a2632f601f6b4
6
+ metadata.gz: 33a027169d8361f54c1b042d52ec0ac6b152657a5901fc15a3d192ffb52d64235c19efa0b5a0b0696ecf74e7980b29ec987afe656f45ab5f99f180d31081fa60
7
+ data.tar.gz: 9c2f0c7c9305684cb753e93d14ad49c7453d40ab0006c516457a1022ec769399dcad8a070f8a643e40221a2ddaacff729bf86d11a8b48de84dd9f7089ce389d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- selenium_standalone_dsl (0.1.5)
4
+ selenium_standalone_dsl (0.1.6)
5
5
  headless
6
6
  nokogiri
7
7
  selenium-webdriver
@@ -6,7 +6,8 @@ module SeleniumStandaloneDSL
6
6
  user_agent: 'Selenium Standalone DSL', headless: false)
7
7
 
8
8
  if headless
9
- @headless = Headless.new(reuse: false, destroy_at_exit: true).start
9
+ @headless = Headless.new(reuse: false, destroy_at_exit: true)
10
+ @headless.start
10
11
  end
11
12
 
12
13
  # Extends timeout
@@ -1,3 +1,3 @@
1
1
  module SeleniumStandaloneDSL
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/spec/base_spec.rb CHANGED
@@ -46,10 +46,10 @@ describe SeleniumStandaloneDSL::Base do
46
46
 
47
47
  it 'determine if the page has the text' do
48
48
  @driver.visit 'http://localhost:4567/'
49
- expect(@driver.has_element?(:text, 'Hello')).to be true
50
- expect(@driver.has_element?(:text, 'Hogehogehoge')).to be false
51
- expect(@driver.has_element?(:class, 'title')).to be true
52
- expect(@driver.has_element?(:class, 'titleIsNotBlank')).to be false
49
+ expect(@driver.has_element?('Hello')).to be true
50
+ expect(@driver.has_element?('Hogehogehoge')).to be false
51
+ expect(@driver.has_element?('title', find_by: :class)).to be true
52
+ expect(@driver.has_element?('titleIsNotBlank', find_by: :class)).to be false
53
53
  end
54
54
 
55
55
  it 'search with Nokogiri' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_standalone_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - gosho-kazuya