selenium - Limitation of HTMLUnit driver for headless testing -


can perform following functions using html unit driver headless browser automation?

  1. is possible take snapshot?
  2. can click hyperlink ?
  3. possible handle pop-ups?

please help

i planning automation using htmlunit driver

yes, can perform operations per of 3 point using headless browser. don't use htmlunit have many configuration issue.

phamtomjs approach headless browser phantomjs having bug these days because of poorly maintenance of it.

you can use chromedriver headless jobs.

you need pass 1 option in chromedriver below:-

chromeoptions.addarguments("--headless"); 

full code appear :-

system.setproperty("webdriver.chrome.driver","d:\\workspace\\jmeterwebdriverproject\\src\\lib\\chromedriver.exe"); chromeoptions chromeoptions = new chromeoptions(); chromeoptions.addarguments("--headless"); chromeoptions.addarguments("--start-maximized"); webdriver driver = new chromedriver(chromeoptions); driver.get("https://www.google.co.in/"); 

hope :)


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -