![]() ![]() You no longer need to install additional dependencies. We use appium-ios-device to handle Safari since Appium 1.15. Mobile Safari on a Real iOS Device For XCUITest Then, use desired capabilities like these to run your test in mobile Safari: 然后,使用期望功能类似于在你的mobile Safari中运行你的测试:ĭesiredCapabilities capabilities = new DesiredCapabilities() ĬtCapability(MobileCapabilityType.PLATFORM_NAME, "iOS") ĬtCapability(MobileCapabilityType.PLATFORM_VERSION, "13.2") ĬtCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest") ĬtCapability(MobileCapabilityType.BROWSER_NAME, "Safari") ĬtCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 11") įirst of all, make sure developer mode is turned on in your Safari preferences so that the remote debugger port is open. You must run Safari on the device before attempting to use Appium, in order for the correct preferences to have been set. It is accessed by setting the browserName desired capabilty to "Safari" while leaving the app capability empty. Basically, you write a normal WebDriver test, and use Appium as the Selenium server with a special set of desired capabilities.Īppium can automate the Safari browser on real and simulated iOS devices. If you’re interested in automating your web app in Mobile Safari on iOS or Chrome on Android, Appium can help you. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |