Unable to launch HtmlUnitdriver through Selenium 3.4.0

前端 未结 2 1856
离开以前
离开以前 2020-12-22 13:20

I am tried to run the HtmlUnitDriver with selenium 3.4 and chrome Version 64.0.3282.119 (Official Build) (32-bit). My code is:

package eclipse;

import java.         


        
2条回答
  •  礼貌的吻别
    2020-12-22 13:49

    Use this code to Initialize headless browser :

    HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME ,true);
    driver.get("your web URL");  
    

提交回复
热议问题