Can Selenium be run on a server to automate tasks, or does it need a browser to run the task inside of -


i reading on selenium docs , couldn't quite work out whether run on server - part of larger web app.

ie. happens in web app triggers automated selenium script run, returns result web app.

is possible use of selenium or need actual browser run tasks inside of, or can run virtual browser ?


selenium need instance of browser control.

luckily, there browsers out there aren't heavy usual browsers know. don't have open ie / firefox / chrome / opera. can use htmlunitdriver controls htmlunit - headless java browser not have ui. or phantomjsdriver drives phantomjs - headless browser running on webkit.

those headless browsers less memory-heavy, faster (since don't have render anything), don't require graphical interface available computer run @ , therefore usable server-side.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -