Mobile: scrollTo fails in iOS hybrid webview

Hi Christopher,

You note above was helpful.

I load a document in my app and switch to webview. It works this far.
Trying to find an element in the webview for iOS fails.

Here is what i am trying to do:
def get_element_by_xpath(element_path)
begin
$appiumDriver.find_element(:xpath,element_path)
rescue
raise ElementNotFoundException, element_path
end
end

get_element_by_xpath(’//UIAWebView[text()=“This is an automation test”]’)
In my document this is the only line of text present.

I am not sure if it is even working right. I do see a context switch happen and this is what I see in the logs until timeout
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Waited for 13280ms so far
info: [debug] [REMOTE] Executing ‘find_element’ atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Waited for 13792ms so far
info: [debug] [REMOTE] Executing ‘find_element’ atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Waited for 14301ms so far
info: [debug] [REMOTE] Executing ‘find_element’ atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response

Thanks