Selenium WebDriver Recipes in Ruby: The problem solving guide to Selenium WebDriver in Ruby (Test Automation Recipes Series Book 2) by Zhan Zhimin

Selenium WebDriver Recipes in Ruby: The problem solving guide to Selenium WebDriver in Ruby (Test Automation Recipes Series Book 2) by Zhan Zhimin

Author:Zhan, Zhimin [Zhan, Zhimin]
Language: eng
Format: azw3
Publisher: leanpub.com
Published: 2018-10-07T16:00:00+00:00


I frequently use this in my test scripts.

Generate random person names, emails, addresses with Faker

Faker is a Ruby library that generates fake data.

require 'faker' Faker::Name.name # => "Jeromy Erdman" Faker::Name.first_name # => "Alexandre" Faker::Internet.email # => "[email protected]" Faker::Address.street_address # => "290 Nienow Flats" Faker::PhoneNumber.phone_number # => "(206)223-6173"

You can find more examples at Faker web site. By default, addresses and phone numbers are US format, however, you can switch to another locale or add customization.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.