selenium - Limitation of HTMLUnit driver for headless testing -
can perform following functions using html unit driver headless browser automation?
- is possible take snapshot?
- can click hyperlink ?
- 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
Post a Comment