Hi,
How to handle Carousels in safari browser in ios 10.2 or webview appium for selenium. I just want to move a Image from back to forth in mobile safari.
Eclipse Log:-
FAILED: Validate_School_Logo_Carousels
org.openqa.selenium.WebDriverException: Unhandled endpoint: /session/C92AF553-E719-4078-85E5-8E9CCE748746/buttondown – http://localhost:9222/ with parameters {
wildcards = (
“session/C92AF553-E719-4078-85E5-8E9CCE748746/buttondown”
);
}
Appium Log
[debug] [MJSONWP] Calling AppiumDriver.execute() with args: [“window.scrollBy(0,250)”,[""],“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [XCUITest] Executing command ‘execute’
[debug] [RemoteDebugger] Executing ‘execute_script’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var e=this;
funct…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘3’
[debug] [RemoteDebugger] Received result for atom ‘execute_script’ execution: null
[debug] [MJSONWP] Responding to client with driver.execute() result: null
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/execute 200 514 ms - 76
[HTTP] --> POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/element {“using”:“xpath”,“value”:”//html/body/div[8]/div[1]/div/div[1]/a/img"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“xpath”,"//html/body/div[8]/div[1]/div/div[1]/a/img",“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id
[debug] [BaseDriver] Waiting up to 9000000 ms for condition
[debug] [RemoteDebugger] Executing ‘find_element’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var l=this;functi…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘4’
[debug] [RemoteDebugger] Received result for atom ‘find_element’ execution: {“ELEMENT”:”:wdc:1486027986533"}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“5000”}
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/element 200 519 ms - 90
[HTTP] --> POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/element {“using”:“xpath”,“value”:"//html/body/div[8]/div[1]/div/div[3]/a/img"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“xpath”,"//html/body/div[8]/div[1]/div/div[3]/a/img",“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id
[debug] [BaseDriver] Waiting up to 9000000 ms for condition
[debug] [RemoteDebugger] Executing ‘find_element’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var l=this;functi…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘5’
[debug] [RemoteDebugger] Received result for atom ‘find_element’ execution: {“ELEMENT”:”:wdc:1486027986534"}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“5001”}
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/element 200 513 ms - 90
[HTTP] --> POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/moveto {“element”:“5000”}
[debug] [MJSONWP] Calling AppiumDriver.moveTo() with args: [“5000”,null,null,“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [XCUITest] Executing command ‘moveTo’
[debug] [RemoteDebugger] Executing ‘get_top_left_coordinates’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var h,l=this;func…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:"Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘6’
[debug] [RemoteDebugger] Received result for atom ‘get_top_left_coordinates’ execution: {“x”:136.65625,“y”:704}
[debug] [RemoteDebugger] Executing ‘move_mouse’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var h,ba=this;fun…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:"Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘7’
[debug] [RemoteDebugger] Received result for atom ‘move_mouse’ execution: null
[debug] [MJSONWP] Responding to client with driver.moveTo() result: null
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/moveto 200 1018 ms - 76
[HTTP] --> POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/moveto {“element”:“5000”}
[debug] [MJSONWP] Calling AppiumDriver.moveTo() with args: [“5000”,null,null,“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [XCUITest] Executing command ‘moveTo’
[debug] [RemoteDebugger] Executing ‘get_top_left_coordinates’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var h,l=this;func…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:"Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘8’
[debug] [RemoteDebugger] Received result for atom ‘get_top_left_coordinates’ execution: {“x”:136.65625,“y”:704}
[debug] [RemoteDebugger] Executing ‘move_mouse’ atom in default context
[debug] [RemoteDebugger] Sending javascript command (function(){return function(){var h,ba=this;fun…
[debug] [RemoteDebugger] Sending WebKit data: {“method”:"Runtime.evaluate…
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{“result”:{“type”…
[debug] [RemoteDebugger] Found handler for message ‘9’
[debug] [RemoteDebugger] Received result for atom ‘move_mouse’ execution: null
[debug] [MJSONWP] Responding to client with driver.moveTo() result: null
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/moveto 200 1016 ms - 76
[HTTP] --> POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/buttondown {}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/buttondown] to [POST http://localhost:9222/session/C92AF553-E719-4078-85E5-8E9CCE748746/buttondown] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Unhandled endpoint: /session/C92AF553-E719-4078-85E5-8E9CCE748746/buttondown – http://localhost:9222/ with parameters {\n wildcards = (\n “session/C92AF553-E719-4078-85E5-8E9CCE748746/buttondown”\n );\n}”,“sessionId”:“C92AF553-E719-4078-85E5-8E9CCE748746”,“status”:1}
[JSONWP Proxy] Replacing sessionId C92AF553-E719-4078-85E5-8E9CCE748746 with eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e
[HTTP] <-- POST /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e/buttondown 200 30 ms - 297
[HTTP] --> DELETE /wd/hub/session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e”]
[debug] [JSONWP Proxy] Proxying [DELETE /session/eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e] to [DELETE http://localhost:9222/session/C92AF553-E719-4078-85E5-8E9CCE748746] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “88976C48-10D5-42E0-984F-29ED5D9A2575”,\n “status” : 0\n}”
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 3341)
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[XCUITest] Shutting down Logger process (pid 3346)
[XCUITest] System log exited with code ‘0’
[XCUITest] Shutting down iproxy process (pid 3356)
[XCUITest] iproxy exited with code ‘null’
[debug] [XCUITest] In a web session. Removing remote debugger
[debug] [RemoteDebugger] Disconnecting from WebKit remote debugger
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[Appium] Removing session eec73442-b8ab-4dff-b4a1-c6f6ce8dc72e from our master session list
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null