thank you. i change the annotation “Before” to “BeforeClass”, so it will execute before every case.
then i add launchApp in “before” method and closeApp in “after” method. found the first method after driver initialazation, execute launchApp will fail.
org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start a session but instruments is still around
it may because the app is launched after initialization.
BTW, do you know where can i find a well organized ios example, except the official one, it’s too simple