Automating Firefox and Chrome browsers

前端 未结 2 476
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 07:30

I am looking for a way to automate couple of browsers... Firefox and Chrome (for now on just Windows) from an external application/process.

Is there a way to do thin

相关标签:
2条回答
  • 2020-12-13 07:51

    TestR will let you automated IE, FF, and Chrome. I've started working on Edge support but just haven't had the time.

    https://github.com/BobbyCannon/TestR

    You can use the nuget package.

    https://www.nuget.org/packages/TestR/

    Here is some examples.

    https://docs.epiccoders.com/Page/35/TestR

    0 讨论(0)
  • 2020-12-13 07:52

    http://watin.sourceforge.net/

    WatiN does exactly that, and I believe they recently added Chrome support

    Update 6/22/2011: Currrently WatiN only works on Firefox 2 and 3, not in Firefiox 4 (and almost certainly not in Firefox 5, which was released today). Also, the time of this answer, Chrome support was supposedly being added, but it looks like that never got fully baked and now is not listed as a suported platform on their home page.

    Also worth noting, in my experience WatiN got a lot slower when I upgraded to IE9. I saw this on two different machines, and downgrading to IE8 sped the tests back up on both machines.

    I still use WatiN heavily, but now mostly for behavior driven design and functional regression testing, which generally are not browser-specific. Then, manually test in FF and Chrome for all progression testing.

    Update 9/22/2015: Elmue is right, it looks like WatiN is no longer being worked on. We've looking into Selenium for our automated acceptance tests now: http://www.seleniumhq.org

    0 讨论(0)
提交回复
热议问题