This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When(/^I click on search button$/) do | |
GoogleHomeHelpers.submit | |
end | |
Then(/^I can type "(.+)" in search field$/) do |value| | |
GoogleHomeHelpers.fill_keyword(value) | |
end | |
And(/^I click on first suggestion$/) do | |
GoogleHomeHelpers.click_first_suggestion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'cucumber' | |
require 'cucumber/rake/task' | |
#@!method init_host_name | |
#init host name, in dummy feature the host is google. | |
def init_host_name | |
if ENV['host'].equal? nil | |
ENV['host'] = 'https://www.google.com' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'capybara' | |
gem 'cucumber' | |
gem 'selenium-webdriver' | |
gem 'site_prism' | |
gem 'rspec' | |
gem 'webdrivers' | |
gem 'ffi' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Dummy | |
Scenario: Google search scenario | |
Given I am on google home page | |
Then I can type "Usain bolt" in search field | |
When I click on search button | |
Then I get "Usain Bolt" in search results |