Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6DC118994 for ; Wed, 17 Feb 2016 16:17:21 +0000 (UTC) Received: (qmail 33656 invoked by uid 500); 17 Feb 2016 16:17:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33628 invoked by uid 500); 17 Feb 2016 16:17:18 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 33615 invoked by uid 99); 17 Feb 2016 16:17:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 16:17:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0AF6F2C14F0 for ; Wed, 17 Feb 2016 16:17:18 +0000 (UTC) Date: Wed, 17 Feb 2016 16:17:18 +0000 (UTC) From: "Alexander Sorokin (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-10639) Camera plugin Appium tests for Android occasionally fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alexander Sorokin created CB-10639: -------------------------------------- Summary: Camera plugin Appium tests for Android occasionally fail Key: CB-10639 URL: https://issues.apache.org/jira/browse/CB-10639 Project: Apache Cordova Issue Type: Bug Components: Plugin Camera Reporter: Alexander Sorokin Assignee: Alexander Sorokin Tests occasionally fail to locate camera's shutter or 'Save' buttons. {noformat} [MEDIC LOG Wed, 17 Feb 2016 12:38:47 GMT] Starting new spec: camera.ui.spec.1 Saving the picture to photo library > CALL context("WEBVIEW_org.apache.mobilespec") > POST /session/:sessionID/context {"name":"WEBVIEW_org.apache.mobilespec"} > RESPONSE context("WEBVIEW_org.apache.mobilespec") > CALL execute("document.getElementById(\"info\").innerHTML = \"Ready for action!\";") > POST /session/:sessionID/execute {"script":"document.getElementById(\"info\").innerHTML = \"Ready for action!\";","args":[]} > RESPONSE execute("document.getElementById(\"info\").innerHTML = \"Ready for action!\";") null > CALL context("WEBVIEW_org.apache.mobilespec") > POST /session/:sessionID/context {"name":"WEBVIEW_org.apache.mobilespec"} > RESPONSE context("WEBVIEW_org.apache.mobilespec") undefined > CALL elementById("info") > POST /session/:sessionID/element {"using":"id","value":"info"} > RESPONSE elementById("info") {"ELEMENT":"0.30098064825870097-1"} > CALL sleep(5000) > RESPONSE sleep(5000) > CALL context("WEBVIEW_org.apache.mobilespec") > POST /session/:sessionID/context {"name":"WEBVIEW_org.apache.mobilespec"} > RESPONSE context("WEBVIEW_org.apache.mobilespec") > CALL context("WEBVIEW_org.apache.mobilespec") > POST /session/:sessionID/context {"name":"WEBVIEW_org.apache.mobilespec"} > RESPONSE context("WEBVIEW_org.apache.mobilespec") > CALL execute("navigator.camera.getPicture(function (result) { document.getElementById('info').innerHTML = result.slice(0, 100); }, function (err) { document.getElementById('info').innerHTML = 'ERROR: ' + err; },{\"quality\":50,\"allowEdit\":false,\"sourceType\":1,\"saveToPhotoAlbum\":true});") > POST /session/:sessionID/execute {"script":"navigator.camera.getPicture(function (result) { document.getElementById('info').innerHTML = result.slice(0, 100); }, function (err) { document.getElementById('info').innerHTML = 'ERROR: ' + err; },{\"quality\":50,\"allowEdit\":false,\"sourceType\":1,\"saveToPhotoAlbum\":true});","args":[]} > RESPONSE execute("navigator.camera.getPicture(function (result) { document.getElementById('info').innerHTML = result.slice(0, 100); }, function (err) { document.getElementById('info').innerHTML = 'ERROR: ' + err; },{\"quality\":50,\"allowEdit\":false,\"sourceType\":1,\"saveToPhotoAlbum\":true});") null > CALL sleep(5000) > RESPONSE sleep(5000) > CALL context("NATIVE_APP") > POST /session/:sessionID/context {"name":"NATIVE_APP"} > RESPONSE context("NATIVE_APP") > CALL elementByXPath("//android.widget.ImageView[contains(@resource-id,'shutter')]") > POST /session/:sessionID/element {"using":"xpath","value":"//android.widget.ImageView[contains(@resource-id,'shutter')]"} An error occured: [elementByXPath("//android.widget.ImageView[contains(@resource-id,'shutter')]")] Error response status: 7, , NoSuchElement - An element could not be located on the page using the given search parameters. Selenium error: An element could not be located on the page using the given search parameters. Failing with message: [elementByXPath("//android.widget.ImageView[contains(@resource-id,'shutter')]")] Error response status: 7, , NoSuchElement - An element could not be located on the page using the given search parameters. Selenium error: An element could not be located on the page using the given search parameters. [MEDIC LOG Wed, 17 Feb 2016 12:40:11 GMT] Spec failed: camera.ui.spec.1 Saving the picture to photo library {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org