Giter Site home page Giter Site logo

Comments (7)

deadlyfingers avatar deadlyfingers commented on July 21, 2024

Creating Appium POC project with JXcore to test with Cordova 6

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

Seems to better error reporting using beta version of Appium: npm install -g [email protected]
But looks like instruments can't communicate with device...
Also got error with Android device with Appium beta:
FATAL ERROR: invalid table size Allocation failed - process out of memory

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

In POC Cordova app I get error in test for 'POST /session/:sessionID/execute_async' command on iOS simulator: Original error: Error: SecurityError: DOM Exception 18

On iOS device appium error: Instruments exited with code 255
Instruments Usage Error : Specified target process is invalid: org.thaliproject.postcardapp

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

Started discussion around Cordova 6 on Appium -
https://discuss.appium.io/t/appium-and-cordova-6-web-apps/8638

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

Need to modify tests that involve page changing with new Appium web driver - it now fails when the new page loads

Error: [waitForConditionInBrowser("document.querySelectorAll('div').length > 0",36000)] Error response status: 17, , JavaScriptError - An error occurred while executing user supplied JavaScript. Selenium error: javascript error: document unloaded while waiting for result
  (Session info: chrome=47.0.2526.100)
  (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.10.5 x86_64)
  • so 'waitForConditionInBrowser' doesn't wait for a condition in the browser to evaluate true anymore!!

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

Notes on fixing iOS tests broken after updating Cordova 6 / Appium 1.5 beta:

  • replacing 'safeEval' with 'eval' - tests with 'safeEval' commands will fail.
  • make sure 'waitForElementByCss' after changing page with 'click()'
  • don't use 'waitForConditionInBrowser' to wait for browser conditions!

from postcardapp.

deadlyfingers avatar deadlyfingers commented on July 21, 2024

I now have all tests working again on iOS simulator!

There are Appium / instruments issues with iOS devices that can't be fixed here so I think we can close the issue.

Otherwise I have tried the standard iOS Webkit Debug Proxy, and the Appium recommend fork -
https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/ios-webkit-debug-proxy.md
http://appium.io/slate/en/master/?javascript#ios-webkit-debug-proxy

from postcardapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.