Take the 2-minute tour ×
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 be opened. I want get the url of the current webview to easy for querying. But command query("webview","url") doesn't return correct url. Pls help me. Many thanks.

Here is screenshot :- https://www.dropbox.com/s/d1lijfn4r1picg4/Screenshot%202014-06-11%2011.48.52.png

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

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 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 at 21:23
    
Hi Dmitry. My version: 0.4.22.pre04, 0.4.21 –  Cuong Nguyen Jun 12 at 7:41
add comment

Your Answer

 
discard

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.