user2205339
user2205339

Reputation: 41

Getting started with Ruby, Watir and Ruby Mine?

I want to automate testing of an e-commerce website. I installed Ruby, Watir, Gems and Ruby Mine.

Though I played around with RubyMine I could not figure how to start writing a simple script:

  1. How do I start writing a simple script using RubyMine? I created a project. What is the next step? Do I have to create an rspec file now? And probably search for a sample program, and run it?
  2. Can someone give me a sample of opening a website and maybe clicking a link so that I can see it running?

I would be grateful for simple documentation which helps me.

Upvotes: 2

Views: 1652

Answers (2)

Željko Filipin
Željko Filipin

Reputation: 57312

Did you even check Watir web site? There is plenty of documentation on how to get started there.

Upvotes: 2

CrazyCoder
CrazyCoder

Reputation: 402393

Here is the sample project that is using Cucumber and Watir to open a search page, send a query and verify the results.

Gemfile specifies the required gems, make sure they are installed or can be installed in your environment. If you are on Windows you need to install DevKit.

Upvotes: 1

Related Questions