How to inspect Date picker on real iPhone device for writing selenium script

Hello All,

I can able to inspect the webElements on iPhone device by following the below steps.

  1. Opened the Safari Browser on MAC.
  2. Enabled “Show Develop Menu” option in Advanced popup.
  3. Enabled “Web Inspector” option in iPhone device.
  4. Opened the Safari Browser on iPhone and navigated to any of the website.
  5. Then opened the safari browser on Mac.
  6. Navigated to “Develop” Tab, where I can find the connected device.
  7. Mouse over on the device, I can find the URL.
  8. By clicking on that URL , I can able to inspect the webElements for iPhone device on MAC itself.

But I need to inspect the following Data Types in iPhone.

  1. Data Picker.
  2. Radio button.
  3. Checkbox.

Kindly suggest how to inspect those data types.

You can use appium desktop client to inspect elements of a native app or web elements of a mobile web app, https://github.com/appium/appium-desktop

1 Like

When I download the appium-Desktop, there is no app file.

So kindly suggest me how to install the appium.

Since I have already installed appium 1.6.4

Hi…

I have downloaded and installed successfully.

But when start Appium, I am facing the below logs.

XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.apple.mobilesafari”,“arguments”:["-u",“http://appium.io”],“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Log file for xcodebuild test: /Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/FBB45442-5F6E-45A1-A5C7-220406D799DB/Session-WebDriverAgentRunner-2017-05-29_193300-rHJdSc.log
[Xcode] 2017-05-29 19:33:00.294 xcodebuild[56508:705992] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7ff00260c080 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
[Xcode] 2017-05-29 19:33:00.294 xcodebuild[56508:705992] Error Domain=IDETestOperationsObserverErrorDomain Code=6 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.apple.mobilesafari application”,“sessionId”:“4047BBEB-B5B8-4C1E-83AE-82AD48F3D18F”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1496066936485 (19:38:56 GMT+0530 (IST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.apple.mobilesafari”,“arguments”:["-u",“http://appium.io”],“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

Kindly help me to resolve…!!