How to transfer from UIAutomation to XCUITest

I used to appium on iOS 9.3 with Xcode 7 and use a lot of execution scripts on my code, eg:
executeScript("UIATarget.localTarget().frontMostApp().mainWindow().sliders()[0].value()");
But now, I upgrade to Xcode 8, the execution is not work. Do you have any idea to resolve this ? Can I still use excuteScript() and change scripts from UIAutomation to XCUITest ? If can, can you provide the table of actions transfer from UIAutomation to XCUITest ? Thanks.