How can selenium run in IE do not show the browser windows? -


the operating system windows10, programming language java ,the browser ie11. how can selenium running without browser windows?

you can use phantonjs, htmlunitdriver or headless chrome

for htmlunitdriver

webdriver driver=new htmlunitdriver(); driver.get("http://google.com");  

for phantomjs first download ghostdriver , use

system.setproperty("phantomjs.binary.path", "e:\\phantomjs-2.1.1-windows\\phantomjs.exe");   webdriver driver = new phantomjsdriver();    driver.get("http://google.com");   

for chrome download chromedriver , use

system.setproperty("webdriver.chrome.driver","e:/software , tools/chromedriver_win32/chromedriver.exe"); chromeoptions chromeoptions = new chromeoptions(); chromeoptions.addarguments("headless"); driver.get("http://google.com");  

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -