public let safari = XCUIApplication(bundleIdentifier: "com.apple.mobilesafari")
safari.launch()
safari.textFields["Address"].tap()
safari.textFields["Address"].typeText(url)
url is your desired web address
After this you can interact the web page via
safari.buttons["xxxx"].firstMatch
safari.textFields["yyyy"].firstMatch
1条答案
按热度按时间z4iuyo4d1#
是的可以通过使用Safari
字符串