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.
L'idée c'est de complètement scripter l'utilisation d'un navigateur (analyse de contenu de page, clicks, etc.) que ce soit sur une seule page ou pour des sessions de navigation longues. Pour les analyses de pages tu peux faire vraiment tout et n'importe quoi en XPath. C'est assez puissant mais il faut un peu d’expérience pour certains scénarios un peu tricky.
On trouve ensuite le bouton pour lancer la recherche sur Google puis on génère le clic avec la méthode .click(). La page Google va ainsi effectuer la recherche sur le mot clé 'campus booster'. On va cliquer sur le premier résultat à partir de l'ID du lien pour se rendre sur l'interface Campus Booster, puis de la même manière, on va entrer notre ID puis notre mot de passe afin de se connecter à Campus Booster. On a donc pu géré avec Selenium la connexion/l'envoi de formulaire.
The logic performed by telephone switching relays was the inspiration for the digital computer. The first commercially successful glass bottle blowing machine was an automatic model introduced in 1905. The machine, operated by a two-man crew working 12-hour shifts, could produce 17,280 bottles in 24 hours, compared to 2,880 bottles made by a crew of six men and boys working in a shop for a day. The cost of making bottles by machine was 10 to 12 cents per gross compared to $1.80 per gross by the manual glassblowers and helpers.
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,
I used Firebug to find the ID of the search button (magnifying glass) on the page, then used .getElementById again to grab it, and the .Click method to click it. Alternatively, we could have submitted the search box form like this instead objIE.document.getElementById("search_form_homepage").Submit. Actually, there’s a simpler method still that would allow us to skip the previous 3 steps altogether. Can you see it? Hint: take a look at the url we ended up with… https://duckduckgo.com/?q=auto+parts+in+Houston+TX. Got it? If you still don’t see it, and you don’t think you’ll be able to sleep tonight, email me 🙂