Sign up ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I'm using Calabash for testing. There's a facebook login button in my app, when I click on it, a form is to be opened. I want to get the url of the current webview because it is easy for querying. But command query ("webview","url") doesn't return the correct url. Please help me. Many thanks.

Here is a screenshot :-

share|improve this question
what does query("webview") return? – amazpyel Jun 11 '14 at 13:38

1 Answer 1

Try query("customWebView", "url").

I've seen the same issue when customWebView was implemented instead of simple webView.

share|improve this answer
Both queries do not return URL. Please reference the screenshot, I have updated for it. – Cuong Nguyen Jun 11 '14 at 4:56
Please tell: What calabash-android version do you use? You can get it with gem list calabash-android command. – Dmitry Cheremushkin Jun 11 '14 at 21:23
Hi Dmitry. My version: 0.4.22.pre04, 0.4.21 – Cuong Nguyen Jun 12 '14 at 7:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.