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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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
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 ...
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/')]
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
watir × 24automated-testing × 11
watir-webdriver × 9
selenium-webdriver × 7
ruby × 4
browser-automation × 2
xpath × 2
cucumber × 2
python × 1
testcase × 1
chromedriver × 1
robotframework × 1
continuous-integration × 1
learning × 1
database × 1
firefoxdriver × 1
specflow × 1
sql × 1
sikuli × 1
test-tools × 1
web-testing × 1
watin × 1
hudson × 1