I am a relative newbie to Sahi but I am finding that Sahi is a fantastic way to automate tests and then run them on a variety of browsers including Firefox, Chrome and IE. I am a little reluctant to include IE because it gives me the most problems when dealing with https sites. I haven't tried Sahi on a Mac, but I am confident that it will work there without too much difficulty. FYI. I developed an interesting pattern for moving through our website by having a script per page that "knows" how to recursively include the path it needs to get from any given starting page to itself. This is a work in progress because there are a lot of pages. I will be adding more smarts so that each page script will "know" how to test the page, including link testing and full page screen captures. Suggestions for the last - welcomed,
The automation of vehicles could prove to have a substantial impact on the environment, although the nature of this impact could be beneficial or harmful depending on several factors. Because automated vehicles are much less likely to get into accidents compared to human-driven vehicles, some precautions built into current models (such as anti-lock brakes or laminated glass) would not be required for self-driving versions. Removing these safety features would also significantly reduce the weight of the vehicle, thus increasing fuel economy and reducing emissions per mile. Self-driving vehicles are also more precise with regard to acceleration and breaking, and this could contribute to reduced emissions. Self-driving cars could also potentially utilize fuel-efficient features such as route mapping that is able to calculate and take the most efficient routes. Despite this potential to reduce emissions, some researchers theorize that an increase of production of self-driving cars could lead to a boom of vehicle ownership and use. This boom could potentially negate any environmental benefits of self-driving cars if a large enough number of people begin driving personal vehicles more frequently.
PhantomJS va nous servir de "Web-Driver" et cela sera là son unique utilité. De quoi s'agit-il ? Afin que Python puisse interagir avec le navigateur Web (Chrome, Firefox ou autres), de la même manière que la communication avec une base de données, il nous faut un driver (pilote). C'est là qu'intervient le Web Driver, il permet la communication entre le navigateur Web et notre script Python. De base, Selenium peut utiliser différents drivers pour différents navigateurs (Chrome, Firefox, Opéra) mais ce qui nous intéresse, ce n'est pas d'ouvrir un navigateur mais d'avoir un navigateur headless (sans interface graphique, uniquement en ligne de commandes). C'est là qu'intervient PhantomJS, qui fournit lui-même son Web Driver. L'utilité c'est donc la rapidité d'exécution par rapport aux navigateurs classiques.