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
Appium error: uncaughtException: Cannot read property 'executeAtom' of null #5177
Comments
@jlipps Please check the issue and help me to solve the problem. |
Interesting. This looks like an async error. The first call to get the elements by link text doesn't return but the server starts handling the context methods. |
Can you post your test program? I am having a hard time reproducing. |
Thanks for the pointer imurchie. Actually this is a hybrid app developed in Cordova we are automating. We need to perform a lot of context switches between NATIVE & WEBVIEW. It seems whenever we send a command to Appium to find an element or else in WEBVIEW and we switch the context to NATIVE before the Appium returns the result for WEBVIEW command, the exception occurs. I didn't check the Appium source, but I think when webkit_proxy_debug returns the WEBVIEW command to Appium, the Appium cannot find the WEBVIEW context and we get the exception. To confirm the assumption, I put a 60 seconds delay before switching the context to NATIVE and my Appium driver implicit wait time is set to 30 secs. This will ensure that a WEBVIEW command will either return with a status or timed out before switching to NATIVE context. We didn't get any exception after that. It would be nice to have a catch block in such condition in the Appium server. Please let us know if you have any comments or suggestions. Sorry, we couldn't share the test code as there is an NDA with the client. Besides we actually don't know from where in code we send this async call to Appium and the crash happens very randomly. |
Appium at the moment can only handle one command at a time, so you need to wait for the return of one command before sending the next, or else things will fail in this way. We are working on a redesign of the server which will queue commands, but it is not finished yet unfortunately. |
@triager please close |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am doing iOS Mobile Application Testing using Selenium. I am using respectives
I am using a shell script which is helping me to check the ios_webkit_debug_proxy is available or not. If not exists, within 2 seconds, it will start the ios_webkit_debug_proxy.
My testing is working well. But still facing some problem in appium that Appium is stopped certainly giving an exception uncaught exception: Cannot read property 'executeAtom' of null
I have tried to solve in various ways.
But still error is remaining. Would you please suggest me how I can solve this problem??
For your better understanding I am attaching the log file below.
The text was updated successfully, but these errors were encountered: