Comments (3)
when I using UIA2 as automationName, another error:
2019-01-21 23:23:26:346 - [ai] Getting window size in case we need to scale screenshot
2019-01-21 23:23:26:346 - [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize'
2019-01-21 23:23:26:346 - [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/2680d204-682a-4b14-a8ff-73bb4039fab5/window/current/size] with body: {}
2019-01-21 23:23:26:359 - [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2680d204-682a-4b14-a8ff-73bb4039fab5\",\"status\":0,\"value\":{\"height\":1794,\"width\":1080}}"
2019-01-21 23:23:26:360 - [ai] Getting screenshot to use for classifier
2019-01-21 23:23:26:364 - [debug] [JSONWP Proxy] Matched '/screenshot' to command name 'getScreenshot'
2019-01-21 23:23:26:365 - [debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/2680d204-682a-4b14-a8ff-73bb4039fab5/screenshot] with no body
2019-01-21 23:23:26:745 - [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2680d204-682a-4b14-a8ff-73bb4039fab5\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAIAAACkA3BdAAAAAXNSR0IArs4c6QAAAANzQklUCAgI\\n2+FP4AAAIABJREFUeJzs3Xl8VPWh9\\/HfmTWzZLKRhEkgCWsgISEQuEC1SKGIa6vVtopa7fXi1evT\\nW7vd9tHrtdc+VntvfZ7aer11q9pir6VaF0oVUVFcQMCELCQkJGFJIPs2mX3OzDx\\/nDIN2ZjsJ8nn\\n\\/YcvmTlz5pf5nXNmvue3STt37hSYFnbu3Pk9anO6ePTqq6+++urJLgXGxs6dO6nNaYPanE527tz5\\n008+mexSTIT9Dz882UUYd4vvuKP6qacmuxQYY5rJLgAAAAAA9EVQAQAAAKA6BBUAAAAAqkNQAQAA\\nAKA6uskuACZUWSBQGQgkajRfjImZ7LJgtKqrq0+cOBEXF7d27drJLgsAAMAY+1tQ+eSTT9xud+\\/n\\nJEnS6\\/WxsbGZmZmJiYkjfg+Hw3H48OGTJ0\\/6fL6EhIScnJxly5ZpNMNuzPF4PB9\\/\\/LHJZLroooui\\nfInL5frss89ycnJmzZo13Leblor8\\/p86HF+IiVGCSliInR6PLIRFkrYMEl0qAoFjsiyE+JzBMFur\\nHdbbVcnyQZ+vIRj0hcNJGk2+wbDOYDBI0ug3HlBnKPSBz1cty+5QKEWrLTQY\\/s5gGMbrp5pjx449\\n\\/fTTq1evVoJKWVlZc3OzEOLiiy+OGaQ26+rq6urqhBCFhYUJCQnDervTp08XFxc3NzeHQiG73b5q\\n1ar09PRh7WGsLgVTVCgU2rdvnyzLQ1zEamtrT5w4IYQoKCgYp6vW6GthhtejYrxPtyhRm2Pozw5H\\nTyjU+xFJCKMkJWi1S2NiUnWTeWO3Ixjc09NT6fO5gsFUnW6t...
2019-01-21 23:23:26:747 - [ai] Turning screenshot into HTML image for use with canvas
2019-01-21 23:23:26:784 - [ai] Getting screenshot slices for each element
2019-01-21 23:23:27:344 - [ai] Making label predictions based on element images
2019-01-21 23:23:27:347 - [ai] Resetting element response attribute setting to original value: ""
2019-01-21 23:23:27:348 - [UiAutomator2] Forwarding the following settings to the UiAutomator2 server: ["elementResponseAttributes"]
2019-01-21 23:23:27:349 - [debug] [JSONWP Proxy] Matched '/appium/settings' to command name 'updateSettings'
2019-01-21 23:23:27:350 - [debug] [JSONWP Proxy] Proxying [POST /appium/settings] to [POST http://localhost:8200/wd/hub/session/2680d204-682a-4b14-a8ff-73bb4039fab5/appium/settings] with body: {"settings":{"elementResponseAttributes":""}}
2019-01-21 23:23:27:361 - [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2680d204-682a-4b14-a8ff-73bb4039fab5","status":0,"value":true}
2019-01-21 23:23:27:399 - [debug] [W3C (dc5705c1)] Encountered internal error running command: Error: browserHTTPRequest is not supported outside the web browser without a fetch polyfill.
2019-01-21 23:23:27:400 - [debug] [W3C (dc5705c1)] at new BrowserHTTPRequest (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-core/src/io/browser_http.ts:45:15)
2019-01-21 23:23:27:400 - [debug] [W3C (dc5705c1)] at Object.browserHTTPRequest (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-core/src/io/browser_http.ts:443:10)
2019-01-21 23:23:27:400 - [debug] [W3C (dc5705c1)] at FrozenModel.findIOHandler (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/src/executor/frozen_model.ts:86:30)
2019-01-21 23:23:27:401 - [debug] [W3C (dc5705c1)] at FrozenModel.<anonymous> (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/src/executor/frozen_model.ts:101:10)
2019-01-21 23:23:27:401 - [debug] [W3C (dc5705c1)] at step (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:32:23)
2019-01-21 23:23:27:401 - [debug] [W3C (dc5705c1)] at Object.next (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:13:53)
2019-01-21 23:23:27:401 - [debug] [W3C (dc5705c1)] at /Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:7:71
2019-01-21 23:23:27:402 - [debug] [W3C (dc5705c1)] at new Promise (<anonymous>)
2019-01-21 23:23:27:402 - [debug] [W3C (dc5705c1)] at __awaiter (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:3:12)
2019-01-21 23:23:27:402 - [debug] [W3C (dc5705c1)] at FrozenModel.load (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:113:16)
2019-01-21 23:23:27:402 - [debug] [W3C (dc5705c1)] at Object.<anonymous> (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/src/executor/frozen_model.ts:297:15)
2019-01-21 23:23:27:403 - [debug] [W3C (dc5705c1)] at step (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:32:23)
2019-01-21 23:23:27:403 - [debug] [W3C (dc5705c1)] at Object.next (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:13:53)
2019-01-21 23:23:27:403 - [debug] [W3C (dc5705c1)] at /Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:7:71
2019-01-21 23:23:27:403 - [debug] [W3C (dc5705c1)] at new Promise (<anonymous>)
2019-01-21 23:23:27:403 - [debug] [W3C (dc5705c1)] at __awaiter (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:3:12)
2019-01-21 23:23:27:404 - [debug] [W3C (dc5705c1)] at Object.loadFrozenModel (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/@tensorflow/tfjs-converter/dist/src/executor/frozen_model.js:210:12)
2019-01-21 23:23:27:404 - [debug] [W3C (dc5705c1)] at loadFrozenModel (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/[email protected]@test-ai-classifier/lib/classifier.js:27:30)
2019-01-21 23:23:27:404 - [debug] [W3C (dc5705c1)] at getModel (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/[email protected]@test-ai-classifier/lib/classifier.js:90:23)
2019-01-21 23:23:27:404 - [debug] [W3C (dc5705c1)] at predictionsFromImages (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/[email protected]@test-ai-classifier/lib/classifier.js:210:23)
2019-01-21 23:23:27:404 - [debug] [W3C (dc5705c1)] at Object.getMatchingElements (/Users/chen/.nvm/versions/node/v8.14.0/lib/node_modules/appium/node_modules/[email protected]@test-ai-classifier/lib/classifier.js:271:18)
2019-01-21 23:23:27:405 - [debug] [W3C (dc5705c1)] at <anonymous>
2019-01-21 23:23:27:443 - [HTTP] <-- POST /wd/hub/session/dc5705c1-603e-4e7a-b6fe-52ac84d214f6/element 500 2533 ms - 743
from appiumpro.
Yes, this won't work with the old android driver.
As for the uiautomator2 error, that is coming from tensorflowjs. Did you try to google it to see what it could be?
from appiumpro.
Yes, I did it, somebody says like this:
tensorflow/tfjs#759
I think it was not for me, I think there is a problem with my environment.
Then I reinstalled the Appium and test-ai-classifier, now it can be used.
Thank you!
from appiumpro.
Related Issues (20)
- Python HOT 1
- Python HOT 1
- Error: Could not load your custom find module 'ai'. HOT 1
- Encountered internal error running command: TypeError: Cannot destructure property x of 'undefined' or 'null'. HOT 2
- tf.fromPixels() is renamed to tf.browser.fromPixels(), You can disable deprecation warnings with tf.disableDeprecationWarnings(). HOT 1
- Error: Prediction result array had 4 elements but labels list had 106 elements. HOT 2
- Device Communication
- Events API - Java Client Version
- FAILED: testMemoryUsage
- Edition052_Automate_Mac: org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters.
- node: symbol lookup error: /usr/local/lib/node_modules/test-ai-classifier/build/Release/test-ai-classifier.node: undefined symbol: TF_Version
- If the image is itself is not visible on the screen
- java.io.IOException: Stream closed FFmpeg capturer for duration HOT 1
- zoom in and zoom out not working on dialect OSS HOT 1
- Setting location in yml file
- scroll not working HOT 7
- Image recognition not working HOT 1
- Looks like a typo here - looking forward to trying this out soon! HOT 1
- Could not load your custom find module 'ai' HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appiumpro.