IPhone Real-time Setup

I am trying to write a script using Java and Selenium. Using the Appium tool for automation. I ended up testing a web application on a simulator. I want to know if it is possible to run a test script by connecting the real iPhone device to the MAC via Wi-Fi. If so, can xcode detect the device? If not, is there software there that can help me with this.
I know that it is possible to connect via USB, but I am dealing with a remote MAC machine.

+5
source share
1 answer

Now, if I understand your problem correctly - you want to run the test on a real device without a physical connection to the MAC.

**Answers:** 1. There is no way, you can run test on Real Device without physically connecting it to Mac with an Xcode. 2. Xcode can't detect any iPhone via wifi. 3. There is one way to run test on iPhone without physical connection, if you want to run tests on mobile website that is Safari: A. **ONE TIME SETUP** You need to install iWeb Driver (app) in iPhone once via Xcode. This is a deprecated way though. If you want this, I'll upload the iWeb Driver source code on github, you can download and install further. B. Now before running test, you need to launch the iWeb Driver (app) manually on device, once you run this, it will flash an a URL on app. C. Use this url in Remote Webdriver like: DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(CapabilityType.PLATFORM, DesiredCapabilities.iphone()); WebDriver iphoneDriver = new RemoteWebDriver(new URL(iphoneIp), cap); and then use this driver just like other and run your tests. 
+4
source

Source: https://habr.com/ru/post/1262267/


All Articles