Selenium WebDriver works but SLOW (Java)

后端 未结 6 731
一生所求
一生所求 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

    This thread shows a possible explanation.

    To summarize, Selenium loops through all network cards and calls a method (getHostName) that takes a long time for virtual network cards. Disabling them solved the problem of the OP in the thread.

    (In my own case, I am unable to disable any of them and have to wait at the start of each test case...)

提交回复
热议问题