I am trying to understand the testing framework better and been looking into Selenium. I've used HTMLUnit before, mainly when I needed to scrape some information off-website or likes.
In the context of writing test automation, what's the advantage/disadvantages of Selenium vs HTMLUnit? Looks to me Selenium is more complicated to set up than HTMLUnit, although at the same time there's an HTMLUnitDriver for Selenium which I think to behave the exact same way as in HTMLUnit itself?
Selenium obviously provides a more robust framework, it has the Selenium RC for parallel testing, it also has different browser drivers that can be used - although when you used the browser drivers, the test will actually open/close a browser application rather than headless.
Maybe I am not understanding Selenium correctly. Some directions and pointers would be great!
On another note - a separate question - I am also looking at doing automated testing on a mobile browser, I see that Selenium has an IPhoneDriver for it, but then this is not headless testing either as it requires actual iOS simulator.
Is there any way to do headless testing on mobile sites? Would changing user-agent be sufficient? I've seen a couple of posts around changing user-agent that seem to have their own challenges, eg. Set user-agent in Selenium RC
Thanks a lot!