Swipe from bottom to top to switch off wifi

Hi All,

This is regarding swiping function. i am unable to swipe from bottom to top to switch off wi-fi, can you please help me to resolve this issue.

below is the details

iPad 2 simulator, usign Javascript and selinium
appium 1.5.3

This is the size{ width: 768, height: 1024 } of the uiwindow which i am using.

if i give

startX: 0,
startY: 1024,
endX: 0,
endY: 924,
duration: 500

i get out of bound error

Logs :

[debug] [UIAuto] Socket data received (8192 bytes)

[debug] [UIAuto] Socket data received (1391 bytes)
[debug] [UIAuto] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“Jiva Nurse”,“label”:“Jiva Nurse”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:768,“height”:1024},">":[{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:tr

[Appium] New IosDriver session created successfully, session 3af52e22-8824-467b-b447-09443f3db516 added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,…
[HTTP] <-- POST /wd/hub/session 200 8152 ms - 1064
[HTTP] --> POST /wd/hub/session/3af52e22-8824-467b-b447-09443f3db516/touch/perform {“actions”:[{“action”:“moveTo”,“options”:{“x”:100,“y”:1024}},{“action”:“longPress”,“options”:{“x”:100,“y”:1024}},{“action”:“wait”,“options”:{“ms”:500}},{“action”:“moveTo”,“options”:{“x”:100,“y”:924}},{“action”:“release”,“options”:{}}]}
[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“moveTo”,"optio…
[debug] [iOS] Executing iOS command ‘performTouch’
[debug] [UIAuto] Sending command to instruments: target.touch([{“touch”:[{“x”:100,“y”:1024}],“time”:0.2},{“touch”:[{“x”:200,“y”:2048}],“time”:0.4},{“touch”:[{“x”:200,“y”:2048}],“time”:0.9},{“touch”:[{“x”:300,“y”:2972}],“time”:1.1}])

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Debug: Got new command 3 from instruments: target.touch([{“touch”:[{“x”:100,“y”:1024}],“time”:0.2},{“touch”:[{“x”:200,“y”:2048}],“time”:0.4},{“touch”:[{“x”:200,“y”:2048}],“time”:0.9},{“touch”:[{“x”:300,“y”:2972}],“time”:1.1}])

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Debug: evaluating target.touch([{“touch”:[{“x”:100,“y”:1024}],“time”:0.2},{“touch”:[{“x”:200,“y”:2048}],“time”:0.4},{“touch”:[{“x”:200,“y”:2048}],“time”:0.9},{“touch”:[{“x”:300,“y”:2972}],“time”:1.1}])
2017-03-20 13:17:25 +0000 Debug: target.touch(__NSCFArray)
[iOSLog] [IOS_SYSLOG_ROW] Mar 20 18:47:25 zeadmins-Mac-mini assertiond[459]: assertion failed: 15F34 13C75: assertiond + 13207 [792516D1-991E-36EE-8454-16F8220758D6]: 0x1

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Debug: point is not within the bounds of the screen

[debug] [UIAuto] Socket data received (70 bytes)

[debug] [UIAuto] Got result from instruments: {“status”:17,“value”:“point is not within the bounds of the screen”}

[HTTP] <-- POST /wd/hub/session/3af52e22-8824-467b-b447-09443f3db516/touch/perform 500 1201 ms - 131
[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Error: VerboseError: point is not within the bounds of the screen

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Error: Error during eval: touch@[native code]
eval code
eval@[native code]
startProcessing@file:///Applications/Appium.app/Contents/Resources/node_modules/CD6CB93E-E6B8-4237-9097-D361BC461311/bootstrap-10891f30bcd5049f.js:2793:30
bootstrap@file:///Applications/Appium.app/Contents/Resources/node_modules/CD6CB93E-E6B8-4237-9097-D361BC461311/bootstrap-10891f30bcd5049f.js:2861:31
global code@file:///Applications/Appium.app/Contents/Resources/node_modules/CD6CB93E-E6B8-4237-9097-D361BC461311/bootstrap-10891f30bcd5049f.js:2870:10

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Debug: responding with:

[debug] [Instruments] [INST] 2017-03-20 13:17:25 +0000 Debug: Running system command #4: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js /var/folders/j7/rqwhb6sj4rx1v3nj06sr20g00000gp/T/instruments_sock 2,{“status”:17,"…

[iOSLog] [IOS_SYSLOG_ROW] Mar 20 18:47:55 — last message repeated 1 time —

Can any one help me to resolve this issue