How can I switch native, webview context on ios?

hi,

I was able to use mobile web’s query when using appium 1.7.2v + xcode9, ( I was able to use xpath like mobile web’s)
but the query is not working anymore with appium 1.9.2v + xcode 10.( it has only XCUIElementType~~ xpath)…
currently, getcontexthandles returns only native context.

the previous returned native and webview contexts.

is there any way to use appium before except downgrading T_T?

previous way is more useful to assert element’s attributes…