Hot answers tagged

7

Sikuli is useful whenever you're automating something that's not web based. I really like Selenium and Watir, but they're restricted to web technologies, and even though these are probably the most common nowadays, there are still plenty of companies who use desktop apps. For these, I find Sikuli and its fuzzy matches to be quite useful. Bear in mind that ...


5

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 abstraction and etc but it pays for its dividend in the future for its maintainability.


4

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 in your first test, you would be testing everything about the post being visible. In your 2nd test, the create a post step is only a setup step so that you have ...


4

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 of how to combine series of steps that are then used in multiple places. To do this you can use use functions / procedures / methods in the language you are ...


3

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 I have only one test with multiple test conditions. Test starts with preparing system to certain status, which will be irrelevant for other tests. Then all ...


3

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 elements, but lots of similar buttons, lists, tables... So how could you select specific string (by its contents) in table with 1000+ rows (only 25 are in a ...


3

My company has the standard-issue (at least these days) automation buzzword stack of Maven, Selenium, Jenkins, blah-blah and so on. I use Sikuli. What it takes them a week to automate I automate in a couple hours. Sikuli can automate things Selenium simply cannot, such as Flash or iPhone sims. Selenium can check if a video file is there, but Sikuli can play ...


2

A quick Google shows plenty of people doing this, including This page from WatirMelon ( if you dont know of this site could be worth your while reading it, lots of good stuff on it ) and an example of using ci_reporter is here


2

Well, the error message says that span(:class, "CLASS3") returns nil. If the code works in IRB but not when you run the script, it is usually timing problem. Maybe the element is not at the page when you try to access it. By the way, div(:id, ID2) should be div(:id, "ID2") (please notice the quotes), otherwise it should raise NameError: uninitialized ...


2

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

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 core proxy to inspect traffic after making a response.


1

At the end of each scenario, you should be quitting the driver instance during teardown: $driver.quit


1

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 easier with gem install watir-scroll Then you add to the step file: require 'watir-scroll' And in the code before the click I put this: @browser.element(...


1

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

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 fellow users. The main issues I encounter today are are about javascript and ajax calls. WebDriver doesn't have 100% answers for some of the issues. I don't ...


1

Maulik, Instead of waiting until a value exists, how about trying something along the following lines: br.wait_until{br.text_field(:id=> 'companyName').text.eql?("") == false}


1

Although I haven't had to do this in a few years, I always found the win32OLE to be my best friend in these cases. Can't seem to find any of my old code samples. Doing a quick search, I came across a fairly good tutorial here by David Sulc with this particular post seeming to cover exactly what you're looking for.


1

I am running Watir scripts from Jenkins CI on a couple of projects. I do plan to write about it at my blog soon. If you have specific questions, please ask. I have recently recorded a screencast about the entire test automation solution I have developed for a client: Test automation at HomeSwap.com


1

To use Chrome in Webdriver you have to be sure you did two things: chromedriver.exe is on your classpath you have to build a wrapper so the code knows where to find the binary and can start the chromedriverservice. More info can be found here


1

If you are using Firefox driver you do not have to go through the additional steps. However, we have to go through the additional steps if we use chromedriver. Did you perform those steps?


1

I am using Selenium in my project for functional testing and because Selenium doesn't support GUI testing so for that I am using Sikuli to capture GUI defects so for me both are complimenting each other if used properly. Both sikuli and selenium has its pros n cons. It depends on which kind of web application you are testing and objective of testing. Sikuli ...


1

${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 Equals sign in the string. Can also use "Split String From Right" keyword?


1

For C# testing you should use WatiN instead of WatiR. Also consider using of Telerik Test Studio. It has some benefits for test automation.


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