As of May 31, 2023, we have updated our Code of Conduct.

Hot answers tagged

5 votes
Accepted

What are the differences between capybara and watir

Watir is Object Oriented while capybara is domain specific. Capybara is simple to use, quick to deploy but maintenance will be an issue over time. Watir needs overhead to develop its page ...
Yu Zhang's user avatar
  • 9,852
4 votes

Structuring Selenium tests to avoid duplication

Like Michael said the Page object pattern makes the finder easier to use. I try to maintain a pattern of having a test only verifying one thing or possibly one screen. In your example I would assume ...
Roy Hunter's user avatar
4 votes

Structuring Selenium tests to avoid duplication

I use the page object pattern myself. It addresses two main things: Defines the finder in one place Names the finder with english-like words Good things. However this doesn't address the issue ...
Michael Durrant's user avatar
3 votes

Under what circumstances is Sikuli better for test automation than Selenium or Watir?

Here some points about sikuli I have discovered: Sikuli can not select by 100% text match. So it is extremely difficult to use it in financial applications cause there are not too many different GUI ...
Ivan Gerasimenko's user avatar
3 votes

Structuring Selenium tests to avoid duplication

In my experience, as you correctly mentioned, if creation fails, deletion cannot be even tested, so in fact you have just one test with 2 separate test conditions. So far for every separate scenario ...
Peter M. - stands for Monica's user avatar
2 votes

What are the differences between capybara and watir

I have asked similar question here on watir Github: What are known reasons to use watir not capybara? You may find something useful there.
Nakilon's user avatar
  • 178
1 vote

How can i read http response of a complete page including all web elements in watir?I need the data of Headers

Watir is powered by Selenium WebDriver, which doesn't have a proxy built-in to do this sort of thing. A few suggestions are made over on SO. In the past (working in C#) I was able to use the Fiddler ...
kirbycope's user avatar
  • 4,070
1 vote

How do I configure my env.rb file to be able to switch browsers?

At the end of each scenario, you should be quitting the driver instance during teardown: $driver.quit
Sam Woods's user avatar
  • 8,559
1 vote
Accepted

Watir can't click on an element but can on irb

Finally I managed to click on it. What happened is that the button wasn't directly visible when it did the click so the error pop up. And with watir alone was extremely dificult but I manage to scroll ...
user25268's user avatar
1 vote

How to click on a link with dynamic href with cucumber watir?

You can use xpath to find the element based on the part of the href you know //a[contains(@href,'api/users/confirm-register/')]
Jsmith2800's user avatar
1 vote

What's the difference between using Python vs. Ruby for Browser Automation testing?

I'll make the case for Ruby as I'm most familiar with it. Others can vote up/down Ruby is great because you have rspec and capybara which are widely and heavily used. There is a huge community of ...
Michael Durrant's user avatar
1 vote
Accepted

Problems with escaping the equals sign in a Watir Robot argument

${NeededString}= Fetch From Right ${FullStringWithEQUALSSign} \= Print ${NeededString} This will fetch the string to the right of the equals sign. Assumption here that there is only one ...
Srinivas dasari's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible