Not able to Tap or SendKeys on Appium Inspector to Mobile Web

327 views
Skip to first unread message

Grace Zhou

unread,
Feb 21, 2014, 4:26:25 PM2/21/14
to appium-...@googlegroups.com
Hi, 

I am using Appium to test Safari on iPad simulator.  Here are my steps:

1. Start Appium.app
2. Check on "Use Mobile Safari"
3. Launch
4. I enter "www.apple.com" on simulator
5. Start Appium Inspector

It finds elements on the web page. I select one button and use Touch - Tap. It should click on the button on simulator, but not.  

I copied the recorded code and ran from Terminal. It always failed too.

Here are logs:


info: [INSTSERVER] Socket data received (48 bytes)


info: [INSTSERVER] Socket data being routed for 'cmd' event

info: [INSTSERVER] Got result from instruments: {"status":0,"value":""}

info: Rotating landscape screenshot

info: Rotating image /tmp/appium-instruments/Run 1/screenshotd36266f0-f562-449e-b1ff-577b183e4dad.png -90 degrees




info: Rotating landscape screenshot


info: Rotating image /tmp/appium-instruments/Run 1/screenshotd36266f0-f562-449e-b1ff-577b183e4dad.png -90 degrees




info: Responding to client with success: {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAABAAAAAMACAYAAAC6uhUNAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCS...","sessionId":"77e8f012-b5b1-4492-b147-8491fc32d9b7"}


GET /wd/hub/session/77e8f012-b5b1-4492-b147-8491fc32d9b7/screenshot 200 1703ms - 1.09mb


debug: Appium request initiated at /wd/hub/session/77e8f012-b5b1-4492-b147-8491fc32d9b7/window_handles


info: [REMOTE] Selecting app


debug: Request received with params: {}

debug: [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger

debug: [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"770cfcf5-c759-45a7-b92f-bd801ad495ee","WIRApplicationIdentifierKey":"com.apple.mobilesafari"},"__selector":"_rpc_forwardGetListing:"}

debug: [REMOTE] Receiving data from remote debugger

debug: [REMOTE] Receiving data from remote debugger

debug: [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.apple.mobilesafari","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"770cfcf5-c759-45a7-b92f-bd801ad495ee","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRPageIdentifierKey":1}}}}


info: Responding to client with success: {"status":0,"value":["1"],"sessionId":"77e8f012-b5b1-4492-b147-8491fc32d9b7"}

GET /wd/hub/session/77e8f012-b5b1-4492-b147-8491fc32d9b7/window_handles 200 3ms - 98b


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.15.0","revision":"a7b47d73a27074cc928cc5b325e5d4de1b6e5594"}},"sessionId":"77e8f012-b5b1-4492-b147-8491fc32d9b7"}


debug: Request received with params: {}


GET /wd/hub/status 200 1ms - 199b



I find my request received with params {} .  I am wondering if appium has connected to safari web successfully. Can anyone help me please?

Thanks!
Grace


Jonathan Lipps

unread,
Feb 21, 2014, 4:40:39 PM2/21/14
to Grace Zhou, appium-...@googlegroups.com
The inspector isn't really made for safari. If you want to inspect a website in iOS, just use Desktop Safari's remote debugging, it'll be a lot more straightforward.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Ning (Grace)

unread,
Feb 21, 2014, 5:07:03 PM2/21/14
to Jonathan Lipps, appium-...@googlegroups.com
It works! I enabled Web Inspect and found element by name.  

Much appreciated for quick response! :-)
Reply all
Reply to author
Forward
0 new messages