VLC trancode avi to mp4 (h.264) not playable on iOS - vlc
I'm using VLC (vlckit) transcode media option but the mp4 is not playable within iOS natively (it does play on all other platforms):
VLC Transcode logs:
$":sout=#transcode{venc={module=avcodec{codec=h264_videotoolbox}, vcodec=h264},venc={module=vpx{quality-mode=2},vcodec=VP80},samplerate=44100,soverlay}:file{dst={destination},mux=ts}".
When attempting to save the file to the ios photo library:
Info (36494) / mediaserverd(CoreMedia): <<<< FigCustomURLHandling >>>> curll_installHandlerOnQueue: 0x10339c380: handler: 0x10dfd6920 priority: 800
Error (35388) / assetsd(PhotoLibraryServices): Video <private> cannot be saved to the photo library: Error Domain=AVFoundationErrorDomain Code=-11829 UserInfo={NSUnderlyingError=0x128e46e70 {Error Domain=NSOSStatusErrorDomain Code=-12848}, NSLocalizedFailureReason=<private>, NSURL=<private>, NSLocalizedDescription=<private>}
Info (35388) / assetsd(PhotoLibraryServices): [saveAssetJob:imageSurface:previewImageSurface:completionHandler:] completed job VideoSaveJob assetUUID 36CEDD80-2E1F-4CDB-A05E-5D81B23DE6A3 with generated video destination path <private>
Info (36494) / mediaserverd(MediaToolbox): <<< URLAsset >>> URLAssetFinalize: Called for asset 0x103330580
Info (36494) / mediaserverd(CoreMedia): <<<< FigCustomURLHandling >>>> curll_invalidateOnQueue: 0x10339c360 called
Info (38616) / Kleensight.Mobile.iOS: Error writing to library: Error Domain=ALAssetsLibraryErrorDomain Code=-3302 "Invalid data" UserInfo={NSLocalizedFailureReason=There was a problem writing this asset because the data is invalid and cannot be viewed or played., NSUnderlyingError=0x2833a3c90 {Error Domain=ALAssetsLibraryErrorDomain Code=-3302 "Invalid data" UserInfo={NSLocalizedFailureReason=There was a problem writing this asset because the data is invalid and cannot be viewed or played., NSUnderlyingError=0x2833dccc0 {Error Domain=com.apple.photos.error Code=13 "Operation failed because video file is invalid and cannot be played." UserInfo={NSLocalizedDescription=Operation failed because video file is invalid and cannot be played.}}, NSLocalizedRecoverySuggestion=Try with different data, NSLocalizedDescription=Invalid data}}, NSLocalizedRecoverySuggestion=Try with different data, NSLocalizedDescription=Invalid data}
Any suggestions on how to tweak these VLC transcode parameters so the output mp4 file is playable on iOS? I've read that only certain h.264 profiles work on iOS (https://developer.apple.com/documentation/videotoolbox/vtcompressionsession/compression_properties/profile_and_level_constants)
2021-05-18 11:22:51.868 [32755:14865973] [Debug] libvlc:Copyright © 1996-2019 the VideoLAN team
2021-05-18 11:22:51.868 [32755:14865911] [Debug] libvlc:VLC media player - 3.0.9 Vetinari
2021-05-18 11:22:51.868 [32755:14865850] [Debug] libvlc:revision 3.0.8-262-gb7d4bd2972
2021-05-18 11:22:51.868 [32755:14865846] [Debug] libvlc:configured with /Users/Martz/Projects/vlckit/libvlc/vlc/configure '--prefix=/Users/Martz/Projects/vlckit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-avfoundation' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-nls' '--disable-sse' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-swscale' '--disable-projectm' '--enable-libass' '--enable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--enable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-screen' '--enable-freetype' '--enable-taglib' '--enable-smb2' '--disable-mmx' '--disable-sparkle' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.4 -DNDEBUG' 'LDFLAGS=-arch arm64 -Wl,-ios_version_min,8.4' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.4' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.4' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'PKG_CONFIG_PATH='
2021-05-18 11:22:51.868 [32755:14865912] [Debug] libvlc:Creating an input for 'Detailed pipe 1.avi'
Thread started: #46
2021-05-18 11:22:51.896 [32755:14866023] [Debug] libvlc:using sout chain=`transcode{venc={module=avcodec{codec=h264_videotoolbox}, vcodec=h264,venc=x264{profile = baseline}},vb=500,venc={module=vpx{quality-mode=2},vcodec=VP80},samplerate=44100,soverlay}:file{dst=/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1_compressed.mp4,mux=ts}'
Thread started: <Thread Pool> #10
Thread started: <Thread Pool> #47
Thread started: <Thread Pool> #11
Thread started: <Thread Pool> #13
Thread started: <Thread Pool> #14
2021-05-18 11:22:52.015 [32755:14865912] [Debug] libvlc:stream=`file'[Debug] libvlc:looking for sout access module matching "file": 7 candidates
2021-05-18 11:22:52.015 [32755:14865850] [Debug] libvlc:set config option: sout-standard-dst to /var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1_compressed.mp4
2021-05-18 11:22:52.015 [32755:14866142] [Debug] libvlc:looking for sout mux module matching "ts": 11 candidates
2021-05-18 11:22:52.016 [32755:14865846] [Debug] libvlc:set config option: sout-standard-mux to ts
2021-05-18 11:22:52.016 [32755:14866015] [Debug] libvlc:shaping=200000 pcr=70000 dts_delay=400000
2021-05-18 11:22:52.016 [32755:14866015] [Debug] libvlc:muxer support adding stream at any time
2021-05-18 11:22:52.016 [32755:14866015] [Debug] libvlc:using sout stream module "stream_out_standard"
2021-05-18 11:22:52.016 [32755:14866015] [Warning] libvlc:option venc is unknown
2021-05-18 11:22:52.016 [32755:14866015] [Debug] libvlc:set config option: sout-transcode-samplerate to 44100
2021-05-18 11:22:52.016 [32755:14866015] [Debug] libvlc:set config option: sout-transcode-soverlay to (null)
2021-05-18 11:22:52.017 [32755:14865973]
2021-05-18 11:22:52.017 [32755:14865846] [Debug] libvlc:using sout mux module "mux_ts"
2021-05-18 11:22:52.017 [32755:14866141] [Debug] libvlc:file access output opened (/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1_compressed.mp4)
2021-05-18 11:22:52.017 [32755:14865912] [Debug] libvlc:using sout access module "file"
2021-05-18 11:22:52.017 [32755:14865911] [Debug] libvlc:looking for sout stream module matching "file": 20 candidates
Thread started: <Thread Pool> #48
Thread started: <Thread Pool> #49
Thread started: <Thread Pool> #17
Thread started: <Thread Pool> #18
Thread started: <Thread Pool> #19
2021-05-18 11:22:52.148 [32755:14866023] [Debug] libvlc:muxer prefers to wait for all ES before starting to mux
2021-05-18 11:22:52.148 [32755:14865846] [Debug] libvlc:using default timeshift path
2021-05-18 11:22:52.148 [32755:14865850] [Debug] libvlc:looking for sout stream module matching "transcode": 20 candidates
2021-05-18 11:22:52.148 [32755:14865973] [Debug] libvlc:using timeshift granularity of 50 MiB
2021-05-18 11:22:52.148 [32755:14865973] [Debug] libvlc:`file:///var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi' gives access `file' demux `any' path `/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi'
2021-05-18 11:22:52.148 [32755:14866145] [Debug] libvlc:creating demux: access='file' demux='any' location='/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi' file='/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1.avi'
2021-05-18 11:22:52.149 [32755:14866145] [Debug] libvlc:creating access: file:///var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi
2021-05-18 11:22:52.149 [32755:14866144] [Debug] libvlc:looking for access module matching "file": 20 candidates
2021-05-18 11:22:52.149 [32755:14866139] [Debug] libvlc:using `file/ts:///var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1_compressed.mp4'
2021-05-18 11:22:52.149 [32755:14866142] [Warning] libvlc:option venc is unknown
2021-05-18 11:22:52.149 [32755:14865846] [Debug] libvlc:set config option: sout-transcode-vb to 500[Debug] libvlc:pre-buffering done 1024 bytes in 0s - 7042 KiB/s
2021-05-18 11:22:52.149 [32755:14866015] [Debug] libvlc:using sout stream module "stream_out_transcode"[Debug] libvlc:looking for access_demux module matching "file": 4 candidates
2021-05-18 11:22:52.149 [32755:14865912] [Debug] libvlc:looking for stream_directory module matching "any": 1 candidates
2021-05-18 11:22:52.149 [32755:14866148] [Debug] libvlc:looking for stream_filter module matching "record": 25 candidates[Debug] libvlc:Using stream method for AStream*
2021-05-18 11:22:52.149 [32755:14865912] [Debug] libvlc:using stream_filter module "record"
2021-05-18 11:22:52.150 [32755:14865973]
2021-05-18 11:22:52.150 [32755:14866143]
2021-05-18 11:22:52.150 [32755:14866143] [Debug] libvlc:<list 'hdrl'>
2021-05-18 11:22:52.150 [32755:14866144] [Debug] libvlc:looking for stream_filter module matching "prefetch,cache_read": 25 candidates
2021-05-18 11:22:52.150 [32755:14865850] [Debug] libvlc:no stream_directory modules matched
2021-05-18 11:22:52.150 [32755:14866140] [Debug] libvlc:stream=`transcode'
2021-05-18 11:22:52.151 [32755:14866140] [Debug] libvlc:<list 'INFO'>
2021-05-18 11:22:52.151 [32755:14866140] [Debug] libvlc:</list 'INFO'>0
2021-05-18 11:22:52.151 [32755:14866140] [Debug] libvlc:skipping movi chunk
2021-05-18 11:22:52.151 [32755:14865912] [Debug] libvlc:looking for demux module matching "avi": 46 candidates
2021-05-18 11:22:52.151 [32755:14865912] [Debug] libvlc:</list 'AVI '>0
2021-05-18 11:22:52.152 [32755:14865973] [Debug] libvlc:<list 'AVI '>
2021-05-18 11:22:52.152 [32755:14865973] [Debug] libvlc:no more data at 70813996
2021-05-18 11:22:52.152 [32755:14865912] [Debug] libvlc:* LIST-root size:70813996 pos:0
2021-05-18 11:22:52.152 [32755:14865846]
2021-05-18 11:22:52.152 [32755:14866140] [Debug] libvlc: | | + avih size:56 pos:24[Debug] libvlc: | | + LIST-strl size:116 pos:88
2021-05-18 11:22:52.152 [32755:14865846]
2021-05-18 11:22:52.152 [32755:14866146] [Debug] libvlc:no access_demux modules matched
2021-05-18 11:22:52.152 [32755:14865911] [Debug] libvlc:using access module "filesystem"
2021-05-18 11:22:52.152 [32755:14866141] [Debug] libvlc:no stream_filter modules matched
2021-05-18 11:22:52.153 [32755:14866144] [Debug] libvlc:</list 'strl'>0
2021-05-18 11:22:52.153 [32755:14865850] [Debug] libvlc:</list 'hdrl'>0
2021-05-18 11:22:52.153 [32755:14865912] [Debug] libvlc: | + LIST-hdrl size:192 pos:12
2021-05-18 11:22:52.153 [32755:14865912] [Debug] libvlc:AVIH: 1 stream, flags HAS_INDEX IS_INTERLEAVED
2021-05-18 11:22:52.153 [32755:14865912] [Debug] libvlc:stream[0] rate:25000000 scale:1000000 samplesize:0
2021-05-18 11:22:52.153 [32755:14865912] [Debug] libvlc:stream[0] video(H264) 704x576 24bpp 25.000000fps
2021-05-18 11:22:52.153 [32755:14865912] [Debug] libvlc:selecting program id=0
2021-05-18 11:22:52.154 [32755:14865912] [Debug] libvlc:selected standard index for stream[0]
2021-05-18 11:22:52.154 [32755:14865973] [Debug] libvlc: + RIFF-AVI size:70813988 pos:0
2021-05-18 11:22:52.154 [32755:14865973] [Debug] libvlc:stream[0] length:396 (based on index)
2021-05-18 11:22:52.154 [32755:14865973] [Debug] libvlc:using demux module "avi"
2021-05-18 11:22:52.154 [32755:14866145] [Debug] libvlc:starting pre-buffering
2021-05-18 11:22:52.154 [32755:14866148] [Debug] libvlc:creating demux: access='file' demux='any' location='/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi' file='/var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1.avi'
2021-05-18 11:22:52.154 [32755:14865846] [Debug] libvlc: | | | + strf size:40 pos:164
2021-05-18 11:22:52.155 [32755:14866147] [Debug] libvlc: (path: /var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed pipe 1.avi)
2021-05-18 11:22:52.155 [32755:14865911] [Debug] libvlc: | | + ISFT size:16 pos:224
2021-05-18 11:22:52.155 [32755:14866141] [Debug] libvlc: | + JUNK size:1780 pos:248
2021-05-18 11:22:52.155 [32755:14866144] [Debug] libvlc: | + LIST-movi size:70603880 pos:2036
2021-05-18 11:22:52.155 [32755:14865850] [Debug] libvlc: | + idx1 size:208064 pos:70605924
2021-05-18 11:22:52.155 [32755:14866139] [Debug] libvlc:received first data after 0 ms
2021-05-18 11:22:52.155 [32755:14866146] [Debug] libvlc: | + LIST-INFO size:28 pos:212
2021-05-18 11:22:52.155 [32755:14865912] [Debug] libvlc:stream[0] created 9910 index entries
2021-05-18 11:22:52.155 [32755:14866142] [Debug] libvlc:using stream_filter module "cache_read"
2021-05-18 11:22:52.155 [32755:14866140] [Debug] libvlc: | | | + strh size:56 pos:100
2021-05-18 11:22:52.156 [32755:14866015] [Debug] libvlc:attachment of directory-extractor failed for file:///var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi
2021-05-18 11:22:52.156 [32755:14866143] [Debug] libvlc:<list 'strl'>
2021-05-18 11:22:52.156 [32755:14866023] [Debug] libvlc:looking for stream_filter module matching "any": 25 candidates
Thread started: #20
2021-05-18 11:22:52.181 [32755:14865850] [Debug] libvlc:switching to async mode
2021-05-18 11:22:52.181 [32755:14866147] [Debug] libvlc:looking for meta reader module matching "any": 1 candidates
2021-05-18 11:22:52.181 [32755:14866144] [Debug] libvlc:Buffering 0%
2021-05-18 11:22:52.181 [32755:14866146] [Debug] libvlc:Buffering 5%
2021-05-18 11:22:52.181 [32755:14866146] [Debug] libvlc:found NAL_PPS (pps_id=0 sps_id=0)
2021-05-18 11:22:52.181 [32755:14866146] [Debug] libvlc:Buffering 22%
2021-05-18 11:22:52.181 [32755:14866146] [Debug] libvlc:Buffering 25%
2021-05-18 11:22:52.181 [32755:14866145] [Debug] libvlc:looking for packetizer module matching "any": 25 candidates
2021-05-18 11:22:52.182 [32755:14866145] [Debug] libvlc:set config option: sout-transcode-module to avcodec{codec=h264_videotoolbox}
2021-05-18 11:22:52.182 [32755:14866145] [Debug] libvlc:set config option: sout-transcode-vcodec to h264
2021-05-18 11:22:52.182 [32755:14866146] [Debug] libvlc:trying configuration venc={module=avcodec{codec=h264_videotoolbox}, vcodec=h264,venc=x264{profile = baseline}}
2021-05-18 11:22:52.182 [32755:14865850] [Debug] libvlc:Buffering 12%
2021-05-18 11:22:52.182 [32755:14866141] [Debug] libvlc:`file:///var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/Detailed%20pipe%201.avi' successfully opened[Debug] libvlc:Buffering 32%
2021-05-18 11:22:52.182 [32755:14866141] [Debug] libvlc:Buffering 35%
2021-05-18 11:22:52.182 [32755:14866142] [Debug] libvlc:Buffering 10%
2021-05-18 11:22:52.182 [32755:14866142] [Debug] libvlc:Checking video codec mapping for h264 got h264
2021-05-18 11:22:52.183 [32755:14866023] [Debug] libvlc:adding a new sout input for `h264` (sout_input: 0x282afb380)
2021-05-18 11:22:52.183 [32755:14866023] [Debug] libvlc:Buffering 42%
2021-05-18 11:22:52.183 [32755:14866148] [Debug] libvlc:using packetizer module "h264"[Debug] libvlc:creating video transcoding from fcc=`h264' to fcc=`h264'[Debug] libvlc:Buffering 2%
2021-05-18 11:22:52.183 [32755:14866148] [Debug] libvlc:looking for video decoder module matching "any": 12 candidates
2021-05-18 11:22:52.183 [32755:14866148] [Debug] libvlc:Buffering 45%
2021-05-18 11:22:52.183 [32755:14866140] [Debug] libvlc:Buffering 17%
2021-05-18 11:22:52.183 [32755:14866015] [Debug] libvlc:Buffering 20%
2021-05-18 11:22:52.183 [32755:14866142] [Debug] libvlc:Buffering 40%[Debug] libvlc:Buffering 52%
2021-05-18 11:22:52.183 [32755:14866023]
2021-05-18 11:22:52.183 [32755:14866139]
2021-05-18 11:22:52.183 [32755:14866146] [Warning] libvlc:option venc is unknown
2021-05-18 11:22:52.184 [32755:14865850]
2021-05-18 11:22:52.184 [32755:14865850] [Debug] libvlc:new PPS parsed: 0
2021-05-18 11:22:52.184 [32755:14866144] [Debug] libvlc:found NAL_SPS (sps_id=0)
2021-05-18 11:22:52.184 [32755:14866148] [Debug] libvlc:Buffering 47%
2021-05-18 11:22:52.184 [32755:14866140] [Debug] libvlc:Buffering 50%
2021-05-18 11:22:52.184 [32755:14866015]
2021-05-18 11:22:52.184 [32755:14866015] [Warning] libvlc:forcing CVPX format: 420v
2021-05-18 11:22:52.184 [32755:14866142] [Debug] libvlc:Buffering 55%
2021-05-18 11:22:52.184 [32755:14866142] [Debug] libvlc:Buffering 75%
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:no meta reader modules matched
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:Buffering 80%
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:Buffering 82%
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:Buffering 85%
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:Buffering 87%
2021-05-18 11:22:52.185 [32755:14865911] [Debug] libvlc:Buffering 90%
2021-05-18 11:22:52.185 [32755:14866015] [Debug] libvlc:Buffering 72%[Debug] libvlc:Buffering 92%
2021-05-18 11:22:52.186 [32755:14866142] [Debug] libvlc:Buffering 77%
2021-05-18 11:22:52.186 [32755:14866147] [Debug] libvlc:Buffering 15%
2021-05-18 11:22:52.186 [32755:14865850] [Debug] libvlc:Buffering 62%
2021-05-18 11:22:52.186 [32755:14866144] [Debug] libvlc:Buffering 65%
2021-05-18 11:22:52.186 [32755:14866143] [Debug] libvlc:Buffering 27%
2021-05-18 11:22:52.186 [32755:14866148] [Debug] libvlc:Buffering 67%
2021-05-18 11:22:52.186 [32755:14865973] [Debug] libvlc:looking for a subtitle file in /var/mobile/Containers/Data/Application/2687A4B5-D96C-4CEF-B8DC-B823938C25DC/Documents/
2021-05-18 11:22:52.186 [32755:14866023] [Debug] libvlc:Buffering 57%
2021-05-18 11:22:52.186 [32755:14866015] [Debug] libvlc:Buffering 95%
2021-05-18 11:22:52.186 [32755:14865846] [Debug] libvlc:starting in sync mode
2021-05-18 11:22:52.186 [32755:14866147] [Debug] libvlc:Buffering 100%
2021-05-18 11:22:52.187 [32755:14865850] [Debug] libvlc:Stream buffering done (1025 ms in 28 ms)
2021-05-18 11:22:52.187 [32755:14866140] [Debug] libvlc:Buffering 70%
2021-05-18 11:22:52.187 [32755:14865911]
2021-05-18 11:22:52.187 [32755:14866139] [Debug] libvlc:Buffering 60%
2021-05-18 11:22:52.187 [32755:14866142] [Debug] libvlc:Buffering 97%
2021-05-18 11:22:52.187 [32755:14866141] [Debug] libvlc:Buffering 37%
2021-05-18 11:22:52.187 [32755:14866146] [Debug] libvlc:new SPS parsed: 0
2021-05-18 11:22:52.187 [32755:14866145] [Debug] libvlc:Buffering 30%
2021-05-18 11:22:52.188 [32755:14865912] [Debug] libvlc:Buffering 7%
2021-05-18 11:22:52.220 [32755:14866143] [Debug] libvlc:using ffmpeg Lavc58.6.103
2021-05-18 11:22:52.220 [32755:14865846] [Warning] libvlc:vt session error: 'kVTVideoDecoderMalfunctionErr'
2021-05-18 11:22:52.221 [32755:14866147] [Error] libvlc:option quiet does not exist
2021-05-18 11:22:52.221 [32755:14865850] [Debug] libvlc:CPU flags: 0x00000068
2021-05-18 11:22:52.221 [32755:14866140] [Debug] libvlc:allowing 6 thread(s) for decoding
2021-05-18 11:22:52.221 [32755:14866146] [Debug] libvlc:using frame thread mode with 6 threads
2021-05-18 11:22:52.221 [32755:14866144] [Debug] libvlc:looking for encoder module matching "avcodec": 15 candidates
2021-05-18 11:22:52.221 [32755:14866144] [Debug] libvlc:CPU flags: 0x00000068
2021-05-18 11:22:52.222 [32755:14866144] [Debug] libvlc:set config option: sout-avcodec-codec to h264_videotoolbox
2021-05-18 11:22:52.222 [32755:14866146] [Debug] libvlc:using ffmpeg Lavc58.6.103
2021-05-18 11:22:52.222 [32755:14865973] [Debug] libvlc:codec (h264) started
2021-05-18 11:22:52.222 [32755:14866145] [Debug] libvlc:using video decoder module "avcodec"
2021-05-18 11:22:52.222 [32755:14866023] [Error] libvlc:option quiet does not exist
2021-05-18 11:22:52.223 [32755:14866141] [Debug] libvlc:Time base for probing set to 1000/25000
2021-05-18 11:22:52.223 [32755:14865846] [Debug] libvlc:Time base set to 1000/25000
2021-05-18 11:22:52.223 [32755:14865846] [Debug] libvlc:rc buffer size 2000000 bits
Thread started: #21
2021-05-18 11:22:52.319 [32755:14865911] [Error] libvlc:Unknown option "border_mask"
2021-05-18 11:22:52.319 [32755:14866146] [Error] libvlc:Unknown option "qsquish"
2021-05-18 11:22:52.319 [32755:14866142] [Debug] libvlc:found encoder H264 - MPEG-4 AVC (part 10)
2021-05-18 11:22:52.319 [32755:14866148] [Error] libvlc:Unknown option "lmin"
2021-05-18 11:22:52.319 [32755:14866139] [Error] libvlc:Unknown option "lmax"
2021-05-18 11:22:52.319 [32755:14866144] [Error] libvlc:Unknown option "noise_reduction"
2021-05-18 11:22:52.319 [32755:14865973] [Error] libvlc:Unknown option "rc_buffer_aggressivity"
2021-05-18 11:22:52.319 [32755:14866143] [Debug] libvlc:using encoder module "avcodec"
2021-05-18 11:22:52.319 [32755:14866145] [Debug] libvlc:removing module "avcodec"
2021-05-18 11:22:52.325 [32755:14865846] [Notice] libvlc:using venc={module=avcodec{codec=h264_videotoolbox}, vcodec=h264,venc=x264{profile = baseline}} configuration for transcoding
2021-05-18 11:22:52.325 [32755:14866015] [Debug] libvlc:Decoder wait done in 142 ms
Thread started: #22
2021-05-18 11:22:52.350 [32755:14866140] [Debug] libvlc:available hardware decoder output format 160 (videotoolbox_vld)
2021-05-18 11:22:52.350 [32755:14866140] [Debug] libvlc:available software decoder output format 0 (yuv420p)
2021-05-18 11:22:52.350 [32755:14866140] [Debug] libvlc:Checking if filter chain I420 -> NV12 is possible
2021-05-18 11:22:52.350 [32755:14866147] [Debug] libvlc:looking for video converter module matching "any": 15 candidates
2021-05-18 11:22:52.350 [32755:14866144] [Debug] libvlc:using video converter module "i420_nv12"
2021-05-18 11:22:52.350 [32755:14866144] [Debug] libvlc:Filter 'i420_nv12' (0x109eb9110) appended to chain
2021-05-18 11:22:52.350 [32755:14866144] [Debug] libvlc:removing module "i420_nv12"
2021-05-18 11:22:52.350 [32755:14866144] [Debug] libvlc:Filter 0x109eb9110 removed from chain
2021-05-18 11:22:52.350 [32755:14866144] [Debug] libvlc:Filter chain testing done, input chroma I420 seems to be possible for transcode
2021-05-18 11:22:52.355 [32755:14866015] [Debug] libvlc:source fps 25/1, destination 25/1
2021-05-18 11:22:52.355 [32755:14866015] [Debug] libvlc:source pixel aspect is 0.996540:1
2021-05-18 11:22:52.355 [32755:14866141] [Debug] libvlc:encoder aspect is 704:578
2021-05-18 11:22:52.355 [32755:14866141] [Debug] libvlc:looking for video converter module matching "any": 15 candidates
2021-05-18 11:22:52.355 [32755:14866141] [Debug] libvlc:Filter 'i420_nv12' (0x11f937690) appended to chain
2021-05-18 11:22:52.355 [32755:14866148] [Debug] libvlc:destination (after video filters) 704x578
2021-05-18 11:22:52.355 [32755:14866140] [Debug] libvlc:CPU flags: 0x00000068[Debug] libvlc:scaled pixel aspect is 0.996540:1[Debug] libvlc:set config option: sout-avcodec-codec to h264_videotoolbox
2021-05-18 11:22:52.355 [32755:14866140] [Debug] libvlc:rc buffer size 2000000 bits
2021-05-18 11:22:52.355 [32755:14866146] [Debug] libvlc:using video converter module "i420_nv12"
2021-05-18 11:22:52.355 [32755:14865911] [Error] libvlc:option quiet does not exist[Debug] libvlc:decoder aspect is 1.217993:1
2021-05-18 11:22:52.355 [32755:14866145]
2021-05-18 11:22:52.355 [32755:14866023] [Debug] libvlc:source 704x576, destination 704x576
2021-05-18 11:22:52.355 [32755:14866139]
2021-05-18 11:22:52.355 [32755:14866147]
2021-05-18 11:22:52.355 [32755:14865846] [Debug] libvlc:Time base set to 1/25
2021-05-18 11:22:52.355 [32755:14866015] [Debug] libvlc:source chroma: I420, destination NV12
2021-05-18 11:22:52.355 [32755:14866148] [Debug] libvlc:Time base for probing set to 1/25
2021-05-18 11:22:52.355 [32755:14866141] [Debug] libvlc:using ffmpeg Lavc58.6.103
2021-05-18 11:22:52.355 [32755:14866142] [Debug] libvlc:looking for encoder module matching "avcodec": 15 candidates
2021-05-18 11:22:52.418 [32755:14866143] [Error] libvlc:Unknown option "border_mask"
2021-05-18 11:22:52.418 [32755:14866143] [Debug] libvlc:adding a new input
2021-05-18 11:22:52.418 [32755:14866139] [Debug] libvlc:adding input codec=h264 pid=100
2021-05-18 11:22:52.418 [32755:14866023] [Debug] libvlc:using encoder module "avcodec"
2021-05-18 11:22:52.418 [32755:14865850] [Error] libvlc:Unknown option "lmin"
2021-05-18 11:22:52.418 [32755:14866146] [Error] libvlc:Unknown option "qsquish"
2021-05-18 11:22:52.418 [32755:14866145] [Error] libvlc:Unknown option "rc_buffer_aggressivity"
2021-05-18 11:22:52.418 [32755:14865911] [Debug] libvlc:found encoder H264 - MPEG-4 AVC (part 10)
2021-05-18 11:22:52.418 [32755:14865912] [Error] libvlc:Unknown option "lmax"
2021-05-18 11:22:52.418 [32755:14866147] [Error] libvlc:Unknown option "noise_reduction"[Debug] libvlc:new PCR PID is 100
2021-05-18 11:22:52.418 [32755:14866140]
2021-05-18 11:22:52.492 [32755:14866142] [Warning] libvlc:almost fed libavcodec with two frames with the same PTS (36713941)
[Removed many lines like the line above to save space in this post]
2021-05-18 11:23:24.157 [32755:14866143] [Warning] libvlc:cannot get packet header, track disabled
2021-05-18 11:23:24.157 [32755:14866142] [Debug] libvlc:EOF reached
2021-05-18 11:23:24.157 [32755:14865850] [Debug] libvlc:waiting decoder fifos to empty
2021-05-18 11:23:24.173 [32755:14866144] [Warning] libvlc:almost fed libavcodec with two frames with the same PTS (36723816)
2021-05-18 11:23:24.263 [32755:14866015] [Debug] libvlc:removing module "h264"[Debug] libvlc:removing a sout input (sout_input: 0x282afb380)
2021-05-18 11:23:24.263 [32755:14865912]
2021-05-18 11:23:24.263 [32755:14866145] [Debug] libvlc:killing decoder fourcc `h264'
2021-05-18 11:23:24.275 [32755:14866023] [Warning] libvlc:cannot encode one frame
2021-05-18 11:23:24.276 [32755:14866139] [Debug] libvlc:removing module "avcodec"
2021-05-18 11:23:24.277 [32755:14866147] [Debug] libvlc:removing module "avcodec"
2021-05-18 11:23:24.288 [32755:14866142] [Debug] libvlc:Filter 0x11f937690 removed from chain
2021-05-18 11:23:24.289 [32755:14866143] [Debug] libvlc:removing module "i420_nv12"
2021-05-18 11:23:24.289 [32755:14866141] [Debug] libvlc:freeing video PID 100
2021-05-18 11:23:24.289 [32755:14866144] [Warning] libvlc:no more input streams for this mux
2021-05-18 11:23:24.289 [32755:14866148] [Debug] libvlc:removing module "record"
2021-05-18 11:23:24.289 [32755:14866140] [Debug] libvlc:removing module "avi"
2021-05-18 11:23:24.289 [32755:14865850] [Debug] libvlc:removing input pid=100
2021-05-18 11:23:24.289 [32755:14865850] [Debug] libvlc:removing module "filesystem"
2021-05-18 11:23:24.289 [32755:14865846] [Debug] libvlc:removing module "cache_read"
2021-05-18 11:23:24.289 [32755:14865846] [Debug] libvlc:Program doesn't contain anymore ES
You forget to transcode audio to "mp4a". Also change mux to "mp4". This should works. "vb" and "ab" set as you need.
:sout=#transcode{venc=avcodec, vcodec=h264, vb=2048, acodec=m4a, ab=128, samplerate=44100}:std{access=file, mux=mp4, dst=PATH}
Related
Appium-unhandled exception ENOENT is occuring
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d) info: Appium REST http interface listener started on 127.0.0.1:4723 info: [debug] Non-default server args: {"address":"127.0.0.1","logNoColors":true,"platformName":"Android","platformVersion":"23","automationName":"Appium"} info: Console LogLevel: debug info: --> POST /wd/hub/session {"capabilities":[{"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"}},{"requiredCapabilities":{}}],"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"},"requiredCapabilities":{}} info: Client User-Agent string: Apache-HttpClient/4.5.1 (Java/1.8.0_131) info: [debug] No appActivity desired capability or server param. Parsing from apk. info: [debug] No appPackage desired capability or server param. Parsing from apk. info: [debug] Using local app from desired caps: C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] Creating new appium session f7d1277d-e625-4bc1-a4ad-4902bb5ed25b info: Starting android appium info: [debug] Getting Java version info: Java version is: 1.8.0_131 info: [debug] Checking whether adb is present info: [debug] Using adb from C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe info: [debug] Parsing package and activity from app manifest info: [debug] Checking whether aapt is present info: [debug] Using aapt from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe info: [debug] Extracting package and launch activity from manifest. info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe dump badging C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] badging package: com.indsci.iassign info: [debug] badging act: com.indsci.iassign.HomeActivity info: [debug] Parsed package and activity are: com.indsci.iassign/com.indsci.iassign.HomeActivity info: [debug] Using fast reset? true info: [debug] Preparing device for session info: [debug] Checking whether app is actually present info: Retrieving device info: [debug] Trying to find a connected android device info: [debug] Getting connected devices... info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe devices info: [debug] 1 device(s) connected info: Found device emulator-5554 info: [debug] Setting device id to emulator-5554 info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5) info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 wait-for-device info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "echo 'ready'" info: [debug] Starting logcat capture info: [debug] Getting device API level info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "getprop ro.build.version.sdk" info: [debug] Device is at API Level 23 info: Device API level is: 23 info: [debug] Extracting strings for language: default info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "getprop persist.sys.language" info: [debug] Current device persist.sys.language: info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\yjaya\Desktop\app-release-unsigned.apk" "C:\Users\yjaya\AppData\Local\Temp;C:\Program Files\Java\jre1.8.0_121\bin\com.indsci.iassign" info: [debug] No strings.xml for language '', getting default strings.xml info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\yjaya\Desktop\app-release-unsigned.apk" "C:\Users\yjaya\AppData\Local\Temp;C:\Program Files\Java\jre1.8.0_121\bin\com.indsci.iassign" warn: Error getting strings.xml from apk info: [debug] Exception in thread "main" java.lang.Exception: Output is not an existing readable directory. at io.appium.apktools.StringsXML.e(StringsXML.java:112) at io.appium.apktools.Main.main(Main.java:23) warn: Could not get strings, continuing anyway info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "echo '{}' > /data/local/tmp/strings.json" info: [debug] Checking whether aapt is present info: [debug] Using aapt from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe info: [debug] Retrieving process from manifest. info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe dump xmltree C:\Users\yjaya\Desktop\app-release-unsigned.apk AndroidManifest.xml info: [debug] Set app process to: com.indsci.iassign info: [debug] Not uninstalling app since server not started with --full-reset info: [debug] Checking app cert for C:\Users\yjaya\Desktop\app-release-unsigned.apk. info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] App already signed. info: [debug] Zip-aligning C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] Checking whether zipalign is present info: [debug] Using zipalign from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\zipalign.exe > error: Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\yjaya\AppData\Local\Temp;C:\ProgramFiles\Java\jre1.8.0_121\bin\117522-13276-xudx2z' at Error (native) at Object.fs.mkdirSync (fs.js:747:18) at tempDir (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\node_modules\appium-support\lib\tempdir.js:21:8) at Object.generateName [as path] (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\node_modules\appium-support\lib\tempdir.js:29:20) at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:460:30) at [object Object].ADB.checkSdkBinaryPresent (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:116:5) at [object Object].ADB.checkZipAlignPresent (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:146:8) at [object Object].ADB.zipAlignApk (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:457:8) at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:496:10) at ChildProcess.exithandler (child_process.js:742:7) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1016:16) at Process.ChildProcess._handle.onexit (child_process.js:1088:5) context: [POST /wd/hub/session {"capabilities":[{"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"}},{"requiredCapabilities":{}}],"d] Also have done adding Environment variables with sdk path..Still getting the above error. Can anyone please help me on this.
Appium Inspector not able to load image
Details : Appium 1.4.13 ; Mac OSX While this feature was working fine until some time back before the 1.4.13 was released but ever since then I am unable to refresh the view of the Appium Inspector for my application. The hierarchy is loaded but the IMAGE is not displayed. Even on clicking Refresh the following logs are generated : 2015-11-20 06:16:33:244 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/source {} 2015-11-20 06:16:33:244 - info: [debug] Pushing command to appium work queue: ["source",{}] 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"source","params":{}} 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got command action: source 2015-11-20 06:16:33:259 - info: [debug] [UIAUTOMATOR STDOUT] [APPIUM-UIAUTO] [debug] Returning result: {"status":0,"value":" esc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\ 2015-11-20 06:16:33:260 - info: [debug] [UIAUTOMATOR STDOUT] "true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[15,169][753,188]\" resource-id=\"\" instance=\"0\"/></android.widget.RelativeLayout></android.widget.LinearLayout> content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-c 2015-11-20 06:16:33:262 - info: [debug] Stream still not complete, waiting 2015-11-20 06:16:33:262 - info: [debug] [UIAUTOMATOR STDOUT] lickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[15,326][753,366]\" resource-id=\"com.flipkart.android:id/btn_mlogin\" instance=\"3\"/></android.widget.LinearLayout></android.widget.ScrollView></android.widget.RelativeLayout></android.widget.LinearLayout></android.widget.ViewSwitcher></android.widget.FrameLayout></android.widget.LinearLayout></android.widget.FrameLayout></hierarchy>"}[/APPIUM-UIAUTO] 2015-11-20 06:16:33:265 - info: [debug] Stream still not complete, waiting 2015-11-20 06:16:33:266 - info: [debug] Responding to client with success: {"status":0,"value":" 2015-11-20 06:16:33:267 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/source 200 23.308 ms - 9023 {"status":0,"value":" 2015-11-20 06:16:33:269 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/orientation {} 2015-11-20 06:16:33:270 - info: [debug] Pushing command to appium work queue: ["orientation",{}] 2015-11-20 06:16:33:273 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"orientation","params":{}} 2015-11-20 06:16:33:273 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Got command action: orientation 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Current rotation: ROTATION_0 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"PORTRAIT"} 2015-11-20 06:16:33:274 - info: [debug] Responding to client with success: {"status":0,"value":"PORTRAIT","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:275 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/orientation 200 5.853 ms - 82 {"status":0,"value":"PORTRAIT","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:277 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/screenshot {} 2015-11-20 06:16:33:278 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "/system/bin/rm /data/local/tmp/screenshot.png; /system/bin/screencap -p /data/local/tmp/screenshot.png " 2015-11-20 06:16:33:354 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 pull /data/local/tmp/screenshot.png "/var/folders/9_/zhwc774n3kx8k1g7s_n3q9n15by3jh/T/appium1151020-1782-57al17.png" 2015-11-20 06:16:33:394 - info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:395 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/screenshot 200 118.561 ms - 74 {"status":0,"value":"","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:398 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/contexts {} 2015-11-20 06:16:33:398 - info: [debug] Getting a list of available webviews 2015-11-20 06:16:33:398 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "cat /proc/net/unix" 2015-11-20 06:16:33:442 - info: [debug] WEBVIEW_3598 mapped to pid 3598 2015-11-20 06:16:33:442 - info: [debug] Getting process name for webview 2015-11-20 06:16:33:443 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "ps" 2015-11-20 06:16:33:485 - info: [debug] Parsed pid: 3598 pkg: com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] from: u0_a67,3598,465,1106360,97644,ffffffff,b7577d05,S,com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] returning process name: com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] ["WEBVIEW_com.flipkart.android"] 2015-11-20 06:16:33:486 - info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:487 - info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_com.flipkart.android"],"sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:488 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/contexts 200 90.058 ms - 117 {"status":0,"value":["NATIVE_APP","WEBVIEW_com.flipkart.android"],"sessionId":"95abc888-6917-45c7-b004-155de500244e"}
The issue was with the installation of the Appium itself. Tried to upgrade the app from 1.4.8 to 1.4.13 instead of installing the app from a .dmg for 1.4.13.
Appium sendKeys doesn't work for iPhone 6
I setup the Appium for UI iOS testing. But I failed to get the sendKeys work at all. My testing environment: OSX 10.10.2 Appium 1.3.6 Xcode 6.2 iPhone 6 (8.1) simulator, the softkey is default to be shown I tried to "Send Keys" in Appium. But nothing happened. The log in Appium shows no error at all. Here is the script: (Objective-C) [[wd findElementBy:[SEBy xPath:#"//UIAApplication[1]/UIAWindow[1]/UIATextField[1]/UIATextField[1]"]] sendKeys:#"username"]; Here is the log file: (Any idea? Thanks.) info: --> POST /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/element {"using":"name"} info: [debug] Missing params for request: ["selector"] info: <-- POST /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/element 400 0.761 ms - 32 info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/source {} info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()" info: [debug] Sending command to instruments: au.mainApp().getTreeForXML() info: [debug] Socket data received (8192 bytes) info: [debug] Socket data received (3184 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"TestDemo","label":"TestDemo","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":375,"height":647},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true," info: [debug] Responding to client with success: {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"TestDemo\" label=\"TestDemo\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"375\" height=\"647\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"375\" height=\"667\">\n <UIAStaticText name=\"Login\" label=\"Login\" value=\"Login\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"156.5\" y=\"108\" width=\"62\" height=\"29\">\n </UIAStaticText>\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n </UIATextField>\n </UIATextField...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/source 200 229.958 ms - 13364 {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"TestDemo\" label=\"TestDemo\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"375\" height=\"647\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"375\" height=\"667\">\n <UIAStaticText name=\"Login\" label=\"Login\" value=\"Login\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"156.5\" y=\"108\" width=\"62\" height=\"29\">\n </UIAStaticText>\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n </UIATextField>\n </UIATextField...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/orientation {} info: [debug] Pushing command to appium work queue: "au.getScreenOrientation()" info: [debug] Sending command to instruments: au.getScreenOrientation() info: [debug] Socket data received (33 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Setting internal orientation to PORTRAIT info: [debug] Responding to client with success: {"status":0,"value":"PORTRAIT","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/orientation 200 117.559 ms - 82 {"status":0,"value":"PORTRAIT","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/screenshot {} info: [debug] Pushing command to appium work queue: "au.getScreenOrientation()" info: [debug] Sending command to instruments: au.getScreenOrientation() info: [debug] Socket data received (33 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Setting internal orientation to PORTRAIT info: [debug] Pushing command to appium work queue: "au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503')" info: [debug] Sending command to instruments: au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503') info: [debug] Socket data received (25 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":""} info: [debug] Waiting 10000 ms for screenshot to ge generated. info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 47 from instruments: au.mainApp().getTreeForXML() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.mainApp().getTreeForXML() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with:valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":375,"height":667},">":[{"UIAStaticText":{"#":{"name":"Login","label":"Login","value":"Login","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/0","x":156.5,"y":108,"width":62,"height":29},">":[]}},{"UIATextField":{"#":{"name":null,"label":null,"value":"User name","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":107.5,"y":174,"width":161,"height":30},">":[{"UIATextField":{"#":{"name":null,"label":null,"value":"User name","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/0","x":107.5,"y":174,"width":161,"height":30},">":[]}}]}},{"UIAStaticText":{"#":{"name":"Label","label":"Label","value":"Label","dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":117.5,"y":184,"width":42,"height":20.5},">":[]}},{"UIASecureTextField":{"#":{"name":null,"label":null,"value":"Password","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/3","x":107.5,"y":227.5,"width":161,"height":30},">":[{"UIASecureTextField":{"#":{"name":null,"label":null,"value":"Password","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/3/0","x":107.5,"y":227.5,"width":161,"height":30},">":[]}}]}},{"UIAButton":{"#":{"name":"Login","label":"Login","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/4","x":130.5,"y":290,"width":114,"height":30},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":375,"height":667},">":[{"UIAKeyboard":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":409,"width":375,"height":258},">":[{"UIAImage":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/0","x":0,"y":409,"width":375,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/1","x":6,"y":407,"width":112,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/2","x":131,"y":407,"width":113,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/3","x":257,"y":407,"width":112,"height":42},">":[]}},{"UIAKey":{"#":{"name":"q","label":"q","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/4","x":0,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"w","label":"w","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/5","x":37.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"e","label":"e","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/6","x":75,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"r","label":"r","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/7","x":112.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"t","label":"t","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/8","x":150,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"y","label":"y","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/9","x":187.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"u","label":"u","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/10","x":225,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"i","label":"i","val ue":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/11","x":262.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"o","label":"o","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/12","x":300,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"p","label":"p","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/13","x":337.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"a","label":"a","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/14","x":18.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"s","label":"s","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/15","x":56,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"d","label":"d","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/16","x":93.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"f","label":"f","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/17","x":131,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"g","label":"g","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/18","x":169,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"h","label":"h","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/19","x":206.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"j","label":"j","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/20","x":244,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"k","label":"k","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/21","x":281.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"l","label":"l","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/22","x":319,"y":514,"width":37.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"shift","label":"shift","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Triple-tap to enter caps lock","path":"/0/1/0/23","x":0,"y":568,"width":48,"height":46},">":[]}},{"UIAKey":{"#":{"name":"z","label":"z","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/24","x":56,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"x","label":"x","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/25","x":93.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"c","label":"c","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/26","x":131,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"v","label":"v","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/27","x":169,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"b","label":"b","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/28","x":206.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"n","label":"n","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/29","x":244,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"m","label":"m","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/30","x":281.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"Delete","label":"Delete","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/31","x":327,"y":568,"width":48,"height":46},">":[]}},{"UIAKey":{"#":{"name":"more, numbers","label":"more, numbers","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint" :null,"path":"/0/1/0/32","x":0,"y":6 info: [debug] [INST] 20,"width":46.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Next keyboard","label":"Next keyboard","value":"Emoji","dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Double-tap and hold, then drag up to select another keyboard","path":"/0/1/0/33","x":46.5,"y":620,"width":47,"height":46},">":[]}},{"UIAKey":{"#":{"name":"space","label":"space","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/34","x":93,"y":620,"width":188.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Dictate","label":"Dictate","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":"Double tap to start dictation. Two finger double tap when finished","path":"/0/1/0/35","x":93.5,"y":620,"width":37.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Return","label":"return","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/36","x":281.5,"y":620,"width":93.5,"height":46},">":[]}}]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/2","x":0,"y":0,"width":375,"height":667},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/2/0","x":0,"y":0,"width":375,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3:59 PM","label":"3:59 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/2","x":164,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/3","x":345,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}} info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #48: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"#":{"name":"TestDemo","label":"TestDemo","value":null,"dom"... info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 48 from instruments: au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with: info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #49: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}... info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 49 from instruments: au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with: info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #50: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}... info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 50 from instruments: au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503') info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503') info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: target.captureRectOnScreenWithName("{origin:{x:0.00,y:0.00}, size:{height:667.00,width:375.00}}", UIScreen, "screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503") info: [debug] [INST] 2015-03-24 07:59:21 +0000 Screenshot captured. info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with: info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #51: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}... info: [debug] Responding to client with success: {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAYAAADK1zMGAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QmYHFd5KOyjXdZuy9ZqW4t3C2xDApjNQCAhEELYg4EkJGENYU+ACyRAuFzITyAQIJgtkBC4XCBwgbAkIXAhLGYPtoV3LV60WZJl7Xv/9ZWoUU9P9UyN1DPV0/Oe52l1d9WpOqfe0lR/derUqQmNLCWJAAECBAgQIECAAIGuFpjY1bVTOQIECBAgQIAAAQIEcgGBu/8IBAgQIECAAAECBMaAgMB9DOwkVSRAgAABAgQIECAgcPd/gAABAgQIECBAgMAYEBC4j4GdpIoECBAgQIAAAQIEBO7+DxAgQIAAAQIECBAYAwIC9zGwk1SRAAECBAgQIECAgMDd/wECBAgQIECAAAECY0BA4D4GdpIqEiBAgAABAgQIEBC4+z9AgAABAgQIECBAYAwITO5UHQ8ePJiuueaa9OMf/zht3bo1nXPOOemiiy5Kl112WaeK6Nh67rjjjnTo0KF05plnpilTpnRsvSOxosOHD6dvfOMb6Zvf/Gb6yU9+km6++eZ09913p507d6Y5c+akU089NZ133nnpV37lV9IjHvGI9Gu/9mtp8uSO7daR2CTrJDDmBbZs2ZLmz5+fJk2aVPu2xPH29NNPP+F6bNy4Me3fv7/t8kuWLEnTpk1rO791+Tguhc1gae/evWnz5s39sqxYsaLfd18IECBQVeB//+//nd75znfmcVLVZUY7X8Rpr3jFK9KVV155ckU3TjJt27at8cQnPrExderUxoQJEwa8Lr/88sa//du/nWQpnV38wgsvzOv505/+tLMr7uDa1q9f38h2cCP7QR5gGs7ZXi+dHvljuVheIkCgcwLXXXdd47GPfWwjC0rzv73spL9xn/vcp/HP//zPjSNHjpxQQS9/+csbv/qrvzroK2toGLDuL37xi42HPOQhjblz5+Z1WbhwYeNJT3pSI/vx...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/screenshot 200 884.141 ms - 97822 {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAYAAADK1zMGAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QmYHFd5KOyjXdZuy9ZqW4t3C2xDApjNQCAhEELYg4EkJGENYU+ACyRAuFzITyAQIJgtkBC4XCBwgbAkIXAhLGYPtoV3LV60WZJl7Xv/9ZWoUU9P9UyN1DPV0/Oe52l1d9WpOqfe0lR/derUqQmNLCWJAAECBAgQIECAAIGuFpjY1bVTOQIECBAgQIAAAQIEcgGBu/8IBAgQIECAAAECBMaAgMB9DOwkVSRAgAABAgQIECAgcPd/gAABAgQIECBAgMAYEBC4j4GdpIoECBAgQIAAAQIEBO7+DxAgQIAAAQIECBAYAwIC9zGwk1SRAAECBAgQIECAgMDd/wECBAgQIECAAAECY0BA4D4GdpIqEiBAgAABAgQIEBC4+z9AgAABAgQIECBAYAwITO5UHQ8ePJiuueaa9OMf/zht3bo1nXPOOemiiy5Kl112WaeK6Nh67rjjjnTo0KF05plnpilTpnRsvSOxosOHD6dvfOMb6Zvf/Gb6yU9+km6++eZ09913p507d6Y5c+akU089NZ133nnpV37lV9IjHvGI9Gu/9mtp8uSO7daR2CTrJDDmBbZs2ZLmz5+fJk2aVPu2xPH29NNPP+F6bNy4Me3fv7/t8kuWLEnTpk1rO791+Tguhc1gae/evWnz5s39sqxYsaLfd18IECBQVeB//+//nd75znfmcVLVZUY7X8Rpr3jFK9KVV155ckU3TjJt27at8cQnPrExderUxoQJEwa8Lr/88sa//du/nWQpnV38wgsvzOv505/+tLMr7uDa1q9f38h2cCP7QR5gGs7ZXi+dHvljuVheIkCgcwLXXXdd47GPfWwjC0rzv73spL9xn/vcp/HP//zPjSNHjpxQQS9/+csbv/qrvzroK2toGLDuL37xi42HPOQhjblz5+Z1WbhwYeNJT3pSI/vx...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/contexts {} info: [debug] [REMOTE] Debugger socket connected to ::1:27753 info: [debug] [REMOTE] Sending connection key info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"c81f2b85-5108-449d-a70b-95aab0877f21"},"__selector":"_rpc_reportIdentifier:"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__argument":{"WIRSimulatorBuildKey":"12B411","WIRSimulatorProductVersionKey":"8.1","WIRSimulatorNameKey":"iPhone Simulator"},"__selector":"_rpc_reportSetup:"} info: [debug] [REMOTE] Sim name: iPhone Simulator info: [debug] [REMOTE] Sim build: 12B411 info: [debug] [REMOTE] {"__argument":{"WIRApplicationDictionaryKey":{}},"__selector":"_rpc_reportConnectedApplicationList:"} warn: Remote debugger did not list com.wowtv.TestDemo among its available apps info: [debug] [REMOTE] Disconnecting from remote debugger info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP"],"sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/contexts 200 80.879 ms - 86 {"status":0,"value":["NATIVE_APP"],"sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: [debug] [REMOTE] Debugger socket disconnected
Make sure that you have disable the option to Connect Hardware Keyboard on your simulator keyboard setting. Hardware>Keyboard
Appium Running Safari on a Real iOS Device~ Instruments Usage Error : Specified target process is invalid: {}
So I am running Appium and trying to get Safari to launch on a real iOS device. When I run my tests I am getting the following in the Appium logs. info: Launching instruments info: [debug] Attempting to run app on real device with UDID 0d0404b24f2fad46051111d56d811d900cb2a762 info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 0d0404b24f2fad46051111d56d811d900cb2a762 {} -e UIASCRIPT "/Users/trent/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {} info: [debug] And launch timeouts (in ms): {"global":20000} info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 lockdownd[26] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 lockdownd[26] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Mar 19 21:28:24 iPad2 lockdownd[26] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] [INST STDERR] Instruments Usage Error : Specified target process is invalid: {} info: [debug] [INST STDERR] instruments, version 6.1 (56160) usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]] info: [debug] [INSTSERVER] Instruments exited with code 255 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Attempting to retry launching instruments, this is retry #2 info: [debug] Killall iOS Simulator
iOS Hybrid App -Appium click() is not working
I just setup Appium 1.3.6 to test my hybrid cordova iOS app on iPhone Simulator. Able to find button element and its Text, width,Height.But click() is not working.But I am getting 200 success response for click. Please check the appium logs below. Welcome to Appium v1.3.6 (REV 004f52f249d3513809e7d0734d9205d1fec19f8e) info: Appium REST http interface listener started on 0.0.0.0:4723 info: Console LogLevel: debug info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"}} info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5) info: [debug] Using local app from desired caps: /Users/rajesh.madaswamy/Fly dotREZ.app info: [debug] Creating new appium session e385db7f-319a-4c0c-888b-1cc14c415879 info: [debug] Removing any remaining instruments sockets info: [debug] Cleaned up instruments socket /tmp/instruments_sock info: [debug] Setting Xcode folder info: [debug] Setting Xcode version info: [debug] Setting iOS SDK Version info: [debug] Getting sdk version from xcrun with a timeout info: [debug] iOS SDK Version set to 7.0 info: [debug] Instruments v < 7.1, not checking device string support info: [debug] Detecting automation tracetemplate info: [debug] Not auto-detecting udid, running on sim info: [debug] Parsed app Info.plist (as binary) info: [debug] Parsed app Localizable.strings info: [debug] Getting bundle ID from app info: [debug] Parsed app Info.plist (as binary) info: [debug] Creating instruments info: [debug] Preparing uiauto bootstrap info: [debug] Dynamic bootstrap dir: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap info: [debug] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"oneByOne"} info: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify! info: [debug] Dynamic bootstrap path: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js info: [debug] Reusing dynamic bootstrap: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Parsed app Info.plist (as binary) info: [debug] Wrote new app Info.plist with device type info: [debug] Checking whether we need to set app preferences info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killall iPhoneSimulator info: [debug] Killing any other simulator daemons info: [debug] Cleaning sim data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains info: [debug] Cleaning sim preferences info: [debug] Cleaning app data files info: Couldn't find app directories to delete. Probably it's not installed info: [debug] Not setting locale info: [debug] No iOS / app preferences to set info: [debug] Starting iOS 7.* simulator log capture info: [debug] Pre-launching simulator info: [debug] Killing the simulator process info: [debug] Killall iPhoneSimulator info: [debug] Killing any other simulator daemons info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Launching device: iPhone info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Simulator is now ready. info: [debug] No device id or app, not installing to real device. info: [debug] Starting command proxy. info: [debug] Instruments socket server started at /tmp/instruments_sock info: [debug] Starting instruments info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: Launching instruments info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace "/Users/rajesh.madaswamy/Fly dotREZ.app" -e UIASCRIPT "/Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5/InstrumentsShim.dylib","LIB_PATH":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5"} info: [debug] And launch timeouts (in ms): {"global":90000} info: [debug] [INST STDERR] 2015-03-13 17:57:19.701 ScriptAgent[30296:2d07] CLTilesManagerClient: initialize, sSharedTilesManagerClient info: [debug] [INST STDERR] 2015-03-13 17:57:19.702 ScriptAgent[30296:2d07] CLTilesManagerClient: init 2015-03-13 17:57:19.703 ScriptAgent[30296:2d07] CLTilesManagerClient: reconnecting, 0x9472910 info: Instruments is ready to receive commands info: [debug] Instruments launched. Starting poll loop for new commands. info: [debug] Setting bootstrap config keys/values info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n" info: [debug] Socket data received (2 bytes) info: [debug] Socket data being routed. info: [debug] Sending command to instruments: target = $.target(); au = $; $.isVerbose = true; info: [debug] Socket data received (27 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":true} info: [debug] Setting initial orientation to PORTRAIT info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')" info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT') info: [debug] Socket data received (33 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Waiting for app source to contain elements info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()" info: [debug] Sending command to instruments: au.mainApp().getTreeForXML() info: [debug] Socket data received (3339 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":548},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":tr info: [debug] Device launched! Ready for commands info: [debug] Setting command timeout to the default of 60 secs info: [debug] Appium session started with sessionId e385db7f-319a-4c0c-888b-1cc14c415879 info: <-- POST /wd/hub/session 303 8761.761 ms - 9 info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {} info: [debug] Responding to client with success: {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 4.339 ms - 586 {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts {} info: [debug] [REMOTE] Debugger socket connected to ::1:27753 info: [debug] [REMOTE] Sending connection key info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13"},"__selector":"_rpc_reportIdentifier:"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"7.0.3","WIRSimulatorBuildKey":"11B508"}} info: [debug] [REMOTE] Sim name: iPhone Simulator info: [debug] [REMOTE] Sim build: 11B508 info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"com.accenture.londonVoyage-Extension":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}}} info: [debug] Using remote debugger app key: com.accenture.londonVoyage-Extension info: [debug] [REMOTE] Selecting app com.accenture.londonVoyage-Extension (try #1) info: [debug] [REMOTE] function () { [native code] } info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension"},"__selector":"_rpc_forwardGetListing:"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"NavAir","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html"}}}} info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts 200 14.960 ms - 98 {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context {"name":"WEBVIEW_1"} info: [debug] Attempting to set context to 'WEBVIEW_1' info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRSenderKey":"7f6f5954-242e-42aa-a96b-5686585201f0","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"} info: [debug] [REMOTE] Set sender key info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Enabled activity on page info: [debug] [REMOTE] Checking document readyState info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] readyState was complete info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context 200 23.866 ms - 74 {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"} info: [debug] Waiting up to 0ms for condition info: [debug] [REMOTE] Executing 'find_element' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 13.041 ms - 90 {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed {} info: [debug] [REMOTE] Executing 'is_displayed' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed 200 17.283 ms - 76 {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html","WIRTitleKey":"NavAir","WIRPageIdentifierKey":1}}}} info: [debug] Remote debugger notified us of a new page listing info: [debug] New page listing is same as old, doing nothing info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Got a blank data response from debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Got a blank data response from debugger info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: script status is 2 info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Calling onAlert info: [debug] [INST STDERR] 2015-03-13 17:57:25.266 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Call to onAlert returned 'YES' info: [debug] Emiting alert message... info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"} info: [debug] Waiting up to 0ms for condition info: [debug] [REMOTE] Executing 'find_element' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 8.367 ms - 90 {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click {"id":"5001"} info: [debug] [REMOTE] Executing 'click' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click 200 24.389 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {} info: Shutting down appium session info: [debug] Stopping ios info: [debug] Destroying instruments client socket. info: [debug] Closing socket server. info: [debug] Instruments socket server was closed info: [debug] Sending sigterm to instruments info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}} info: [debug] [INST] 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with: 2015-03-13 12:27:20 +0000 Debug: Running system command #1: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}... 2015-03-13 12:27:20 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT') 2015-03-13 12:27:20 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT') 2015-03-13 12:27:20 +0000 Debug: target.setDeviceOrientation("1") 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with: 2015-03-13 12:27:20 +0000 Debug: Running system command #2: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}... 2015-03-13 12:27:20 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML() 2015-03-13 12:27:20 +0000 Debug: evaluating au.mainApp().getTreeForXML() 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with:ue,"valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[{"UIAImage":{"#":{"name":"Default-568h","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"UIAScrollView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":0,"y":20,"width":320,"height":548},">":[{"UIAWebView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/1/0","x":0,"y":20,"width":320,"height":548},">":[]}}]}},{"UIAImage":{"#":{"name":"loading_ani.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":125.5,"y":249,"width":69,"height":70},">":[]}},{"UIAImage":{"#":{"name":"loading_ani_plane.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/3","x":138.5,"y":275.5,"width":43,"height":17},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":320,"height":568},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":0,"width":320,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"5:57 PM","label":"5:57 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/2","x":137,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/3","x":290,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}} 2015-03-13 12:27:20 +0000 Debug: Running system command #3: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"v... 2015-03-13 12:27:30 +0000 Stopped: Script was stopped by the user Instruments Trace Complete (Duration : 15.250390s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Cleaning up after instruments exit info: [debug] Stopping iOS log capture info: [debug] [REMOTE] Disconnecting from remote debugger info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killing any other simulator daemons info: [debug] [REMOTE] Debugger socket disconnected info: [debug] Cleaning sim data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains info: [debug] Cleaning sim preferences info: [debug] Clearing key: SimulateDevice info: [debug] Writing new preferences plist data info: [debug] Cleaning app data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F info: [debug] Cleaning up appium session info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 317.723 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
Try next method: Let driver be Selenium::WebDriver instance, and el your element: On Ruby: driver.action.move_to(el, 0, 30).click.perform