【问题标题】:need google chrome or firefox automation c#需要 google chrome 或 firefox 自动化 c#
【发布时间】:2013-04-30 23:55:28
【问题描述】:

我需要启动一个 chrome 会话登录到一个页面,然后打开一个 url 并关闭 chrome。 我可以在 ie 中执行此操作,但页面不是 ie。优化。我似乎无法自动化 firefox 或 chrome 。有任何想法吗 ?

ta, 加博

【问题讨论】:

    标签: c# google-chrome firefox automation


    【解决方案1】:

    页面需要通过网络浏览器访问的任何原因?在 C# 中创建 Web 请求并以这种方式访问​​页面会更容易。除非您需要它来进行某种集成测试。

    【讨论】:

      【解决方案2】:

      您可以使用 Selenium。它有 IE、firefox 和 chrome 的驱动程序。如果需要入门教程可以观看:http://www.youtube.com/watch?v=y9iFvpK10fw

      【讨论】:

        猜你喜欢
        • 2017-02-10
        • 1970-01-01
        • 2011-01-20
        • 1970-01-01
        • 1970-01-01
        • 2010-11-25
        • 1970-01-01
        • 2019-01-04
        • 1970-01-01
        相关资源
        最近更新 更多