Can I set up Calabash to test a web application on mobile devices?

2,832 views
Skip to first unread message

Beccy Stafford

unread,
Aug 21, 2012, 4:04:51 AM8/21/12
to calabash...@googlegroups.com
Hi,

I have a web application that is accessible on mobile and tablet devices, and was wondering if I could use Calabash to test this? I followed the initial set up instructions on github, but they seem to be for a native android application that has an apk. I was wondering if anyone knows of a set of instructions to set up calabash to work with the native android browser to render a website? I have googled some things about web views etc, but I have been unable to find anything about how to set up an example test that does this. Any help would be much appreciated.

Thanks,
Beccy

Jonas Maturana Larsen

unread,
Aug 21, 2012, 2:25:50 PM8/21/12
to calabash...@googlegroups.com
Hi Beccy,

Welcome to the group.

You would have to write a native wrapper around the web page to test it with calabash.

It is something we have thought about providing but just never got around to do.


- Jonas

eamonn murray

unread,
Nov 5, 2012, 11:49:08 AM11/5/12
to calabash...@googlegroups.com
HI - I'm having the same issue. I made a simple app that launches and opens a safari page. After that I get timeouts when waiting for text to appear etc. It's like the calabash framework has no hooks into the newly opened browser. 

What do you mean write a native wrapper code? Is this easy to da?

Cheers.

Jonas Maturana Larsen

unread,
Nov 5, 2012, 2:27:35 PM11/5/12
to calabash...@googlegroups.com
Are you testing on Android or iOS?
Do you mainly want to test webpages or hybrid apps?

Calabash can only test a single app at at time so please describe what you want to do as much as detailed as possible - we might be able to help.

- Jonas

Gmail

unread,
Nov 5, 2012, 4:53:35 PM11/5/12
to calabash...@googlegroups.com
Hi,  

Ok. I'm tasked with testing a tablet app that will be hybrid, and will be developed using PhoneGap. 

So I can test an open source native app ok from the tutorial. Now I want to test opening a web page like the google login page, and entering user/pass and checking logged in result etc. 

So I have a simple app with a button that launches the google login page InUrl. But after calabash can't detect elements, enter text, buttons. 

That's about it. I suppose ultimately I'm trying to find out how to test a hybrid app. I hope I'm explaining myself well! 

Thanks,

Eamonn

Gmail

unread,
Nov 5, 2012, 4:54:24 PM11/5/12
to calabash...@googlegroups.com
Just to clarify as well, I'm testing an IOS  tablet app. 


On 5 Nov 2012, at 19:27, Jonas Maturana Larsen <jo...@lesspainful.com> wrote:

Jonas Maturana Larsen

unread,
Nov 6, 2012, 4:00:27 AM11/6/12
to calabash...@googlegroups.com
Is the Google login page part loaded in a WebView as part of your app or is it in the build browser? Calabash can only test it if the former is the case.

Also you probably want to use the calabash-ios group:

SANJAY JOSHI

unread,
Mar 22, 2013, 7:19:44 AM3/22/13
to calabash...@googlegroups.com
Hi Beccy,

You can use selenium-webdriver's android-driver with calabash to achieve it. Install selenium-webdriver gem and use it in integration with calabash-android to achieve the tes-automation of both native-app and native-browser compatibility. But if you want that you launch an application on your device in firefox and perform automated action on its element, that is not possible for now

Regards
Sanjay Joshi

Divya R

unread,
Jun 21, 2016, 4:54:01 AM6/21/16
to calabash-android
Hi Team,

Can any one send me sample code of how to launch browser using calabash or any blog helping me same.

Thanks ,
Divya

Shahryar Mozumder

unread,
Jun 29, 2016, 2:18:33 PM6/29/16
to calabash-android
I've used watir-webdriver to open up a browser on the server running Calabash, not on the device itself, and this is from a scenario that runs tests on an Android device, that is. 
Reply all
Reply to author
Forward
0 new messages