Register now or log in to join your professional community.
PhantonJs provides headless browser and is extremely quick. Secondly, with CasperJs, writing test cases are quick and easy. Would like to know what are your thoughts?
NO Selenium Is better Than other tools
Meight be but Selenium is a good tool for web automation. There is not third party involve in this tool.
While writing automation against other pages, I didn’t always know what HTML element I needed to write code for. So I would write code by using a UI, right clicking on some part of the page, then selecting the HTML element I wanted.
PhantomJS uses QtWebKit. That means PhantomJS is not the same JavaScript engine that Chrome uses.For the most part it won’t matter. However, if you need to be% sure it looks and acts like a browser then you need a real browser.
An exmaple use case is scraping websites. I’ve found websites that give you slightly different HTML than they present a browser even after you change the user-agent string. My guess is they also might attempt to detect HTML5 features or a Flash plugin.
From an SEO perspective the change in HTML it’s nothing that I would consider a negative or a cloak but the interesting bits I wanted weren’t there to scrape or interact with. A real browser was the only thing that worked for me.
It works partly by using an invisible Flash movie. So by default, I will need a real browser to make this test work.
Some features I work on include steps that uploads files, print from the webpage, opens separate windows, switches tabs, and uses browser plugins.
Some features I work on right now include these steps. While we have those features covered in unit tests, I’m also testing them manually for important features. I anticipate this is a good way to automate those tests.