Since upgrading to 1.6, clicking an element that is not visible on the screen doesn’t work. From reading the logs it appears as though the command is being executed, but the action the click should trigger (opening a new page in this case) does not happen. In 1.5.3 clicking offscreen elements worked without issue. Is this behavior intended?
appium 1.6.3
ruby 2.3.0
OSX 11.5
iOS10.1 / iPhone7 simulator
log snippet:
command: find_element(:id, ‘Select a Different Location’).click
[HTTP] <-- POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element/4BFC777F-959A-452F-BC58-0346E8448EC3/click 200 856 ms - 118
[HTTP] --> POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element {“using”:“id”,“value”:“Select a Different Location”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“id”,“Select a Different Location”,“c07b3f2f-79a8-46b2-8000-7204d7bee5f1”]
[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 5000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/EFEEE484-5FAD-49C3-A29E-797811465228/element] with body: {“using”:“id”,“value”:“Select a Different Location”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“ELEMENT”:“2D3F82E6-278A-4B04-BC91-984EC67574AA”,“type”:“XCUIElementTypeStaticText”,“label”:“Select a Different Location”},“sessionId”:“EFEEE484-5FAD-49C3-A29E-797811465228”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“2D3F82E6-278A-4B04-BC91-984EC67574AA”,“type”:“XCUIElementTypeStaticText”,“label”:“Select a Different Location”}
[HTTP] <-- POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element 200 341 ms - 195
[HTTP] --> POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element/2D3F82E6-278A-4B04-BC91-984EC67574AA/click {"{}":""}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element/2D3F82E6-278A-4B04-BC91-984EC67574AA/click] to [POST http://localhost:8100/session/EFEEE484-5FAD-49C3-A29E-797811465228/element/2D3F82E6-278A-4B04-BC91-984EC67574AA/click] with body: {"{}":""}
[debug] [JSONWP Proxy] Got response with status 200: {“status”:0,“id”:“2D3F82E6-278A-4B04-BC91-984EC67574AA”,“value”:"",“sessionId”:“EFEEE484-5FAD-49C3-A29E-797811465228”}
[JSONWP Proxy] Replacing sessionId EFEEE484-5FAD-49C3-A29E-797811465228 with c07b3f2f-79a8-46b2-8000-7204d7bee5f1
[HTTP] <-- POST /wd/hub/session/c07b3f2f-79a8-46b2-8000-7204d7bee5f1/element/2D3F82E6-278A-4B04-BC91-984EC67574AA/click 200 856 ms - 118