watir / watir.github.io

Code for our Website
http://watir.github.io/
MIT License
11 stars 66 forks source link

Create Guide with Test Examples #129

Open titusfortner opened 6 years ago

titusfortner commented 6 years ago

Leverage RSpec: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-RSpec Minitest: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-MiniTest

and write example for Cucumber

jarmo commented 6 years ago

Maybe also mention watir-rspec in the RSpec example?

On 4 Aug 2018, at 09:38, Titus notifications@github.com wrote:

Leverage RSpec: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-RSpec Minitest: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-MiniTest

and write example for Cucumber

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

titusfortner commented 6 years ago

I just looked at watir-rspec again, do you use it with Page Objects? It seems like most of the advantages it provides would go away if you abstracted out the implementation code...

Also, how do you handle various browser configurations as part of the "starts the browser automatically" feature?

jarmo commented 6 years ago

Since watir-rspec is mostly about additional helpers and uses regular RSpec configuration then you can do whatever you want. I guess, using with page objects, you would open your browser as you've always done, but you still can get nice html test reports with link to files and screenshots created during your tests. You also will get two additional matchers (within and during).