xcode 是否可以在iphone模拟器中下载浏览器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18332249/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:52:37  来源:igfitidea点击:

Is it possible to download browser in iphone simulator

xcodeseleniumwebdriversimulator

提问by Sajit Gangadharan

I run my selenium tests across different web browsers like google chrome, firefox ie ect. These tests are being conducted in windows and Mac machine. We have requirement to run those tests in mobile browsers. I was able to run in mobile simulator safari browser successfully.

我在不同的网络浏览器(如 google chrome、firefox ie 等)上运行我的 selenium 测试。这些测试是在 windows 和 Mac 机器上进行的。我们需要在移动浏览器中运行这些测试。我能够成功地在移动模拟器 safari 浏览器中运行。

Now, I am wondering if it is possible to run those selenium tests in other browsers like opera mini but I was not able download opera mini browser in my simulator.

现在,我想知道是否可以在其他浏览器(如 opera mini)中运行这些 selenium 测试,但我无法在模拟器中下载 opera mini 浏览器。

Can any one suggest me if it is possible to download browsers in simulators. I am using XCODE to build simulator.

任何人都可以建议我是否可以在模拟器中下载浏览器。我正在使用 XCODE 来构建模拟器。

采纳答案by rmaddy

No, you can't install apps into the iOS simulator except for an app you can actually build in Xcode.

不,除了可以在 Xcode 中实际构建的应用程序之外,您不能将应用程序安装到 iOS 模拟器中。

Use a real iOS device to test using different browsers.

使用真实的 iOS 设备使用不同的浏览器进行测试。

回答by Michael Steuer

You could download and build the Chromium iOS browser in Xcode and run it in the iOS Simulator. It should be close to / in parity with the Chrome iOS browser, at least from a page rendering perspective (difference include things like Chrome's auto update feature, built-in PDF view, Chrome's custom print preview, etc. Mostly ancillary features to the core browsing experience.

您可以在 Xcode 中下载并构建 Chromium iOS 浏览器,然后在 iOS 模拟器中运行它。它应该接近/等同于 Chrome iOS 浏览器,至少从页面渲染的角度来看(差异包括 Chrome 的自动更新功能、内置 PDF 视图、Chrome 的自定义打印预览等。主要是核心的辅助功能浏览体验。

iOS build instructions: https://chromium.googlesource.com/chromium/src/+/master/docs/ios/build_instructions.md

iOS 构建说明:https: //chromium.googlesource.com/chromium/src/+/master/docs/ios/build_instructions.md