-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Querying webviews results in timeouts - AKA NSLog output can cause apps to become unresponsive. #550
Comments
We need more information. Can you provide the queries you are trying? A sample app? Maybe some screenshots? |
@renatorodrigues is it similar to what I've written about here https://groups.google.com/forum/#!searchin/calabash-ios/css/calabash-ios/e5QAtyf30aA/ezPmpk-PeD8J Does all queries fail, or just "*" and "p" like I have discovered so far. I haven't dived more into it, since I was lucky enough to work around it for the moment. @krukow has tried to reproduce using "my" html without luck. |
I am also getting timeout, not sure if this is related to this same case... Feature: Ensure Case Conversation actions Scenario: Add a note to case # features/case_conversation.feature:3 |
I've now been able to reproduce this in the WordPress app: https://github.com/calabash/x-platform-example |
@renatorodrigues @nfrydenholm this was fixed in WordPress with server version 0.11.4. Could you confirm? |
Some details about this. With Xcode 6.1 (and the corresponding version of instruments and UIAutomation), a bug has been introduced by Apple which only occurs if the app is being automated using UIAutomation (which Calabash uses under the hood). It's a really nasty one too: If the application logs too much information the UIAutomation process (and app) will freeze. By default Calabash would log certain data using NSLog when using webView queries (e.g. webView css:'a') this would sometimes cause the app to lock up because of this bug. With release 0.11.5.pre2 this logging has been removed. That's why they were able to proceed with this build. Could you try updating to this version? One key thing to note: This might still occur if the Application happens to log too much data using the NSLog facility. So if they encounter this again, they should look at what the application logs. |
Closing. The information here is condensed in this HotTopic. |
hi there, @sanity @reinstall am on Xcode 7.3 iOS 9.3 calabash 0.18.2 can someone tell why am encountering this issue |
Why did you post this here? The title of the issue is WebView. How is this related to your app, which is native? This issue is also closed and nearly a year old. Please post your question on Stack Overflow or one the Calabash iOS forum. Include more details in your post. We have to see the step definition - the short answer to your question is that view you are waiting for is not visible. |
@jmoody i stumbled upon this issue while searching for similar issues. hence posted. i think it would be worth disabling comments .. have brought it up on forums. hope to see a reply from experts |
I'm using Calabash 0.11.0 and testing on the iPad Retina 8.0 simulator and most of my tests that perform queries on webviews are returning the following error:
Retrying.. HTTPClient::ReceiveTimeoutError: (execution expired)
Any idea of what is causing this?
The text was updated successfully, but these errors were encountered: