Selenium WebDriver works but SLOW (Java)

后端 未结 6 732
一生所求
一生所求 2020-12-09 11:48

I am using Selenium WebDriver to take a screenshot of webpages. It runs great. However, from the time I hit run in eclipse to the time the screenshot shows up in my local dr

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 12:29

    I realize that this question has already been answered, but I hope this helps anyone with the same problem.

    If all you need to do is take screenshots. I recommend using Awesomium.NET. http://awesomium.com/

    Doing this in C# rather than Java shouldn't be a major difficulty since they have similar syntax. It also supports C++ if you want to run your application on Linux. I presume it will be significantly faster than the WebDriver.

    Use this if you choose C++: http://labs.awesomium.com/capturing-web-pages-with-c/

    For C#.NET: http://awesomium.com/docs/1_7_rc3/sharp_api/

提交回复
热议问题