Jump up ^ Michael Chui; James Manyika; Mehdi Miremadi (November 2015). "Four fundamentals of workplace automation As the automation of physical and knowledge work advances, many jobs will be redefined rather than eliminated—at least in the short term". McKinsey Quarterly. Retrieved 7 November 2015. Very few occupations will be automated in their entirety in the near or medium term. Rather, certain activities are more likely to be automated....
I’ve used other automation tools besides VBA. Ubot and iMacros are both excellent, and powerful programs (their own programming languages, really). In some respects they’re easier, and for 99% of web automation tasksg, you really can’t go wrong with either. But I got to where I only used VBA because my programming was getting into Windows API’s and command line calls (Visual Basic is tightly integrated with Windows), plus I often found myself using Excel alongside these programs anyway. I discovered there’s almost nothing VBA can’t do with automating Windows and Internet Explorer (even making IE appear as a different browser), and it seemed to me investing time learning Microsoft’s Visual Basic programming language just made more sense.

This tells VBA we are starting a new subroutine, or Procedure. A module can contain subroutines (Sub … End Sub) and functions (Function … End Function). In the video, we start the subroutine by putting the cursor within the code and pressing F5 (run) or F8 (execute line-by-line). But usually a Sub or Function is called by another Sub or Function, or by a launch button. The name of a Sub or Function can be almost anything you want. CamelCase naming convention, with first letters capitalized, is typical for naming subroutines and functions.
Automatique - Robotique | Biomédical - Pharma | Construction et travaux publics | Électronique - Photonique | Énergies | Environnement - Sécurité | Génie industriel | Ingénierie des transports | Innovation | Matériaux | Mécanique | Mesures - Analyses | Procédés chimie - bio - agro | Sciences fondamentales | Technologies de l'information | Archives |
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.