Posted on September 27, 2017Categories JavaScript, Programming Languages, TechnologyTags , , , , , ,   Leave a comment on Selenium on JavaScript : New WordPress Site Config Script

Selenium on JavaScript : New WordPress Site Config Script

This article continues the journey into learning Selenium on JavaScript (SoJa).  It builds on the lessons of the previous articles and adds some common library functions to make our tests more readable and starts to employ the Don’t Repeat Yourself (DRY) concept. In this case we are going to build a common library module that we will re-use in future scripts. It will load our configuration and environment.  It will also export some methods that make our test script code … Continue reading “Selenium on JavaScript : New WordPress Site Config Script”

Posted on September 27, 2017Categories JavaScript, Quality Assurance, TechnologyTags , , , , , , , ,   Leave a comment on Selenium on JavaScript : User List Test

Selenium on JavaScript : User List Test

I wasn’t quite sure what to name this article.  The Selenium on JS example here can be used to scan any table to ensure every entry on a list of strings exists; should I name it Test Web Page Has All Your Important Data?   The test also uses a separate NodeJS module to configure that list of important string, in my case user account names; Using NodeJS modules to configure repetitive data lists?  It also employes the Promise construct … Continue reading “Selenium on JavaScript : User List Test”

Posted on September 26, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , , ,   Leave a comment on JavaScript Selenium Newb Cheat Sheet

JavaScript Selenium Newb Cheat Sheet

Finding documentation on Selenium is hard enough for the “main languages” of Java or Python.    There are lots of examples of how to do things there in those languages but very little for the JavaScript libraries.   While you can translate most of the Java example to JavaScript there are some differences.    You’ll also find that there is a LOT of outdated information.    To make things more interesting you’ll also find that the older the example the … Continue reading “JavaScript Selenium Newb Cheat Sheet”

Posted on September 22, 2017Categories Quality AssuranceTags , , , , , , , , , ,   Leave a comment on A Simple Selenium Script Example Using JavaScript and Safari

A Simple Selenium Script Example Using JavaScript and Safari

In my previous articles I showed how to enable Safari for web automation (hint: developer menu Allow Remote Automation) and how to get your Node.js environment setup on MacOS to begin writing automated web application scripts.    This example is a very basic script to show how to perform a basic web page load (the MySLP site in this case) with some parameter passing that can be expanded in later examples. Enironment Preparation My test environment is running on MacOS … Continue reading “A Simple Selenium Script Example Using JavaScript and Safari”